"CSS3" (3rd edition) personal note of the 4~6 chapter

Source: Internet
Author: User

1. In general, properties that affect the location of page elements are not inherited, Margin/padding/background-color/border
All the tags in 2.p,p*{},p and p
3. The most recent ancestor style wins, the style of the direct application wins, the style with high weight value wins, the inherited style weight is 0; The weight value is the same, the last defined style wins.
4. Pseudo-elements are treated as tag selectors, with weights of 1, pseudo-classes treated as class selectors, weights 10
5.!important rules for more specific styles win when all two have!important styles applied to the same attributes
6. To invalidate a partial style in an external style sheet, you can redefine it in an internal style sheet, define another external style sheet, and redefine it in the style sheet
7. Some h5 tags, such as header/footer/article, can be set in CSS reset Display:block;
8. When using Web fonts, it is best to put @font-face in the top of the style sheet so that the browser can start downloading them immediately
9.eot format can only be used in IE
10. The order of the fonts should be. Eot,.woff,.ttf and. svg
11. Support IE8 fonts, to add font type in font-family, such as Ptsansregular,font-style and font-weight are set to normal
12. Place the @import at the top of the external style sheet
13.font-size can use the keyword: xx-small,x-small,small,medium,large,x-large,xx-large
14.font-size:0.75rem, set to 0.75 times times the size based on the root element
15text-decoration:underline Blink;
16.text-show can set multiple shadows at the same time, separated by commas
17.text-indent when set to%, indents by width
18.font-size:62.5%, because 62.5% * 16px =10px;,suoyi 1.5em=15px, easy to calculate

"CSS3" (3rd edition) personal note of the 4~6 chapter

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.