In the production of Web pages, we will use a lot of CSS knowledge, here I briefly summed up some.
DIV partitioning block
Ul,li unordered table (with partitioned chunks)
Ol,li ordered list
A hyperlink label
P paragraph Label
H Title Tag
IMG Inserts a picture into the Web page
Input box
Text-align:center Text Center
Text-decoration:none to underline
List-style:none Remove list prefixes
The Display:block becomes a block-level element, and then you can set the width-height ones.
Float:left the element to the left floats, you can make multiple block-level elements on one line
Clear:both clear float to prevent other bad changes caused by floating
Overflow:hidden triggers BFC to prevent child floats from affecting the parent
Position:relative relative positioning
Position:absolute Absolute Positioning
position:fixed fixed positioning
Border border, can be set wide, style and color, etc.
Outline:none to outline, usually to go button the outline of buttons
padding inner margin
margin outer margin
Background to set background properties
Vertical-align:bottom Text Horizontal Alignment
Display:hidden
TextArea Multi-line text box
Header Load Page Header
Nav Navigation Labels
Footer Page Footer
Font-size Font Size
Line-height Font Line Height
CSS knowledge commonly used in web authoring