Five common page layouts in css

王林
Release: 2020-08-14 17:11:43
forward
3148 people have browsed it

Five common page layouts in css

Public style part code:

(Recommended tutorial:CSS tutorial)

html * { margin: 0; padding: 0; } .layout { margin-bottom: 20px; } .layout article { width: 100%; } .layout article > div { min-height: 100px; } .layout article .left { width: 300px; background: red; } .layout article .center { background: orange; } .layout article .right { width: 300px; background: blue; }
Copy after login

float layout

 

这是float布局

这是一段文字

这是一段文字

Copy after login

absolute layout

 

这是absolute布局

这是一段文字

这是一段文字

Copy after login

flex layout

 

这是flex布局

这是一段文字

这是一段文字

Copy after login

table layout

 

这是table布局

这是一段文字

这是一段文字

Copy after login

grid layout

 

这是grid布局

这是一段文字

这是一段文字

Copy after login

The above is the detailed content of Five common page layouts in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!