Responsive layout
Responsive layout has strong flexibility in facing devices with different resolutions, and is basically used in daily web design. To use responsive layout design, it provides us with a good user browsing page and can bring us a better customer experience. Let me share with you a simple responsive layout I made:
#Different pages will adapt to different browser page sizes, which will change as the resolution changes. The code is shown below:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style> p{ font-size: 12px; } header{ width: 100%; } header img{ width: 100%; } @media (min-width: 1300px) and (max-width:1400px) { #left{ float: left; width: 30%; margin: 0px 50px; } #left #logo-bg{ margin: 10% 10%; width: 80%; position: relative; } #left #logo{ float: left; width: 12%; position: absolute; left: 13%; top: 230px; } #left p{ margin-bottom: -20px; } #left p,h4{ text-align: center; color: red; } #right{ float: left; width: 60%; margin: 15% 0px; } #right h2{ text-align: center; } #right fieldset{ text-align: center; border-left: none; border-right: none; border-bottom: none; } #right fieldset legend{ padding: 0px 20px; } #fen{ width: 100%; -webkit-column-count: 6; -moz-column-count: 6; -o-column-count: 6; -ms-column-count: 6; column-count: 6; -webkit-column-gap: 1em; -moz-column-gap: 1em; -o-column-gap: 1em; -ms-column-gap: 1em; column-gap: 1em; } #fen img{ width: 100%; border-radius: 10px 10px 10px 10px; } #fen p,h4{ text-align: center; color: red; } #fen p{ margin-bottom: -20px; } #di p{ text-align: center; } #di p span{ color: red; } } @media (min-width: 1000px) and (max-width:1300px){ #left{ float: left; width: 30%; margin: 0px 50px; } #left #logo-bg{ margin: 10% 10%; width: 80%; position: relative; } #left #logo{ width: 12%; position: absolute; left: 14%; top: 190px; } #left p{ margin-bottom: -20px; } #left p,h4{ text-align: center; color: red; } #right{ float: left; width: 60%; margin: 15% 0px; } #right h2{ text-align: center; } #right fieldset{ text-align: center; border-left: none; border-right: none; border-bottom: none; } #right fieldset legend{ padding: 0px 20px; } #fen{ width: 100%; -webkit-column-count: 3; -moz-column-count: 3; -o-column-count: 3; -ms-column-count: 3; column-count: 3; -webkit-column-gap: 1em; -moz-column-gap: 1em; -o-column-gap: 1em; -ms-column-gap: 1em; column-gap: 1em; } #fen img{ width: 100%; border-radius: 10px 10px 10px 10px; } #fen p,h4{ text-align: center; color: red; } #fen p{ margin-bottom: -20px; } #di p{ text-align: center; } #di p span{ color: red; } } </style> </head> <body> <header> <img src="/static/imghwm/default1.png" data-src="img/rag.png" class="lazy" / alt="A simple case introduction of responsive layout" > </header> <aside id="left"> <img src="/static/imghwm/default1.png" data-src="img/logo-bg.png" class="lazy" id="logo-bg"/ alt="A simple case introduction of responsive layout" > <img src="/static/imghwm/default1.png" data-src="img/logo.png" class="lazy" id="logo" / alt="A simple case introduction of responsive layout" > <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> <p>THE</p> <h4 id="WEBLOCUE">WEBLOCUE</h4> <hr /> </aside> <article id="right"> <h2 id="Give-nbsp-me-nbsp-problems-nbsp-give-nbsp-me-nbsp-work">“Give me problems, give me work.”</h2> <p>In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course.</p> <p>In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course,In the year 1878 I took dogree of Doctor of Medicline of the Unibertive of the London and problems to Netbody to go through the course.</p> <fieldset><legend>victors</legend></fieldset> <p id="fen"> <img src="/static/imghwm/default1.png" data-src="img/1.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/2.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/3.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/4.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/5.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> <img src="/static/imghwm/default1.png" data-src="img/6.jpg" class="lazy" / alt="A simple case introduction of responsive layout" > <p>SETCOME</p> <h4 id="HOLEMES">HOLEMES</h4> </p> <fieldset><legend>*</legend></fieldset> <p id="di"> <p>In the year 1878 I took <span>Suing table</span> dogree of Doctor</p> <p>What the year 2016 I took dogree <span>Ruing roid</span> of Doctor</p> </p> </article> </body> </html>
I am not rigorous enough because of time issues, please forgive me.
The above simple case of responsive layout is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support the PHP Chinese website.
For more simple case introductions of responsive layout and related articles, please pay attention to the PHP Chinese website!

Here's a container with some child elements:

Flyout menus! The second you need to implement a menu that uses a hover event to display more menu items, you're in tricky territory. For one, they should

"The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect."- Tim Berners-Lee

In this week's roundup: datepickers are giving keyboard users headaches, a new web component compiler that helps fight FOUC, we finally get our hands on styling list item markers, and four steps to getting webmentions on your site.

The short answer: flex-shrink and flex-basis are probably what you’re lookin’ for.

In this week's look around the world of web platform news, Google Search Console makes it easier to view crawled markup, we learn that custom properties

The IndieWeb is a thing! They've got a conference coming up and everything. The New Yorker is even writing about it:


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool