1.bfc-block-level element-block-level formatting context
Layout rules:
Independent area, irrelevant to the outside
The inner box will be placed vertically, in a vertical direction.
box vertical distance is determined by margin
The BFC area does not overlap with float box
Floating elements are also calculated when calculating the BFC height
It is triggered (generated).
Triggers the element that generates the BFC environment:
root element
The Float property is not none
Position for absolute or fixed
Display for Inline-block,table-cell,table-caption,flex,inline Flex
The overflow is not visible
You can use Overflow-hidden to avoid generating a BFC environment without affecting other elements in the most degree.
ifc-inline Elements-inline formatting context
No triggering required
Create an IFC environment so that the height of the row box is 100% of the height of the containing block, so that the elements inside the line box are vertically centered using Vertical-align:middle. Therefore, we can insert a inline-block element with a height of 100% in the row box and hold the entire row frame high until the 100% of the block is included.
2.CSS3 Browser Prefix
-webkit-Google or Apple
-o-Open Gate
-moz-Firefox
-ms-ie9
3. Border Fillet Shorthand Properties
border-radius:10px four x Corner
10px 20px Top-left bottom-right, upper-right bottom-left diagonal
10px 20px 30px top left, top left, bottom right
10px 20px 30px 40px clockwise starting from top left
4. Border Shadow Shorthand properties
box-shadow:10px 20px 30px Grey
Horizontal vertical Blur Color
The negative value can be connected in the opposite direction.
5. Text Shadows
Text-shadow Use Ibid.
6.transform 2d Conversion
Translate offset rotate rotation angle scale scaled skew tilt conversion
Web Front end Basic article ④