Web Front end Basic article ④

Source: Internet
Author: User

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 ④

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.