Home > Web Front-end > H5 Tutorial > HTML5 Day 6 Notes

HTML5 Day 6 Notes

黄舟
Release: 2016-12-28 17:18:03
Original
1628 people have browsed it

CSS Layout

Normal document flow: the order in which elements are arranged from top to bottom

Detached from document flow: elements are extracted from the normal arrangement order

Floating: Move the block-level elements to the far left and right of the parent element (arranged according to our own meaning)

float(float):left/right/none;

clear(clear):left /right/both;

float floats relative to the parent element

float is often used for mixed graphics and text

If there is a floating element, its parent element will collapse in height .

opacity represents transparency

PC web page layout

Fixed width and centered layout

Layout of banner header, navigation and footer

Basic components: header, navigation, banner, body, foot

Global style: (must be written every time you create a page)

*{
margin:0;
padding:0;
box-sizing:boder-box;content-box;
}
body{
font-size:12px;
font-family:Microsoft YaHei,"微软雅黑";
width:1000px;
margin:0 auto;
}
ul,ol,li{
list-style:none;
}
a{
text-decoration:none;
}
img{
border:none;
}
Copy after login

—— ——————————————————————————————————

Browser incompatibility occurs when margin-top is added to the child element , just give the parent element a padding: 0.1px to solve the problem

Font hidden-font-size:0px;

Rounded corner attribute: border-radius:20px 30px 40px 50px;

When making a circle, just give border-radius:50%;.

display:block; Convert inline elements to block-level elements

The default display of inline elements is display:inline; the default display of block-level elements is display:block;

The tags newly added by H5 can only write time

The tags newly added by H5 can only write copyright, address, etc.

The above is the content of the notes on the sixth day of HTML5. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template