Summarize common styles of CSS

Source: Internet
Author: User
The popular point of CSS is to add style to the tag. What kind of thing is a style? You can understand the clothes that people wear, make-up and so on, so that their labels look a little better

So how does this CSS add to the corresponding label?

There are 3 ways to do this: external style, inner page style, inline style.

So how does this CSS add to the corresponding label? There are 3 ways to do this: external style, inner page style, inline style. External style: Links a Web page to an external style sheet. Like this: <link rel= "stylesheet" type= "Text/css" href= "xiaochuan.css" > Inner page style: Create an embedded style sheet on a Web page like this.:<style> Body{}</style> in-line style: applies inline styles to individual page elements. Like this: <p style= ' color: #999999 ' >xiaochuan</p> So, for example, I have three styles for a particular label. What does his priority look like? Inline style > inner page style > external style How do you understand it? For example: Inline style set text size to 14px inner page style set text size to 15px external style set text size to 16px so this way the label's setting text size is 14PXCSS syntax Tag Selector method This is for   All tags corresponding to the page will be effective P{color: #999999}<p >xiaochuan1</p>

Related 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.