Client programming-CSS

Source: Internet
Author: User

1. How to add a style sheet to a webpage?
1) inline style <H1 style = "color: red;"> Hello 2) use <style type = "text/CSS"> H1 {color: red;} </style> in 3) in

2. Why is CSS a stacked style?
The concept behind a stacked style sheet is that multiple style definitions can cascade down to influence documents through multiple levels. the priority levels are as follows: 1. user browser settings 2. external style table 3. embedded style sheet 4. inline Style

3. What kind of selectors are available?
1. element P 2.id # top 3. class. name 4. attribute H [hittle] 5. contains selector and sub-object selector H1 B 6. wildcard selector * 7. pseudo class and pseudo element selector A: Link

4. Understand the Box Model
From the inside to the outside border (padding) border (Border) margin (margin)

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.