CSS learning Summary

Source: Internet
Author: User

1.

External (extenal) style sheets have the following advantages over inline and internal:

StyleCodeReusable. An external CSS file can be shared by many webpages.
Easy to modify. To modify a style, you only need to modify the CSS file without modifying each webpage.
Increase the speed of web page display. If a style is written on a webpage, the display speed of the webpage is reduced. If a CSS file is referenced on the webpage, most of the CSS files are already in the cache (other webpages have already referenced it ), web page display speed is faster.

Cascading)
The first letter of CSS is cascading, which indicates a series. Styles of different sources can be combined to form a style.

The order of cascading is:

Browser default (lowest priority)
External style sheet (extenal style sheet)
Internal style sheet (internal style sheet)
Inline style (highest priority)
Styles take precedence over inline, internal, external, and browser default ). Suppose there is a font-size: 30pt In the inline style and a font-size: 12pt in the internal (internal) style, then the inline style will overwrite the internal (internal) style.

2.

Font attributes)
This attribute is a quick and comprehensive way of writing various font attributes. This attribute can be integrated with font-style, font-variant, font-weight, and font-size). Example:

. S1 {Font: italic normal bold 11pt Arial}

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.