Learn the basic CSS knowledge of standard webpage creation technology
Source: Internet
Author: User
Style selector
Property selector p {color: red ;}
Class selector. p {color: red ;}
ID selector # p {color: red ;}
II. transparent
Background: transparent; prevent definition Background from being overwritten
3. Transparent background understanding of Netscape4.X (IE/windows or earlier) errors
Background: inhrit; the transparent Background in netscape4.x will be understood as black-green
4. Default font selection:
Body {font-family: "lucida Grande", Verdana, Lucida, Arial, Helvetica, sans-serif ;}
Call the default fonts of different platforms in sequence
5. How to solve the problem that the old browser does not support CSS?
Use group selector such as p, td, ul, ol, li, dl, dt, dd {font-size: small ;}
VI. Use netscape4 friendly rules
Body {font-family: Verdana, sans-serif ;}
P, td, ul, ol, li, dl, dt, dd {font-size: small ;}
7. Detailed rules for Method overloading:
Body {font-family: Verdana, sans-serif ;}
P, td, ul, ol, li, dl, dt, dd {font-size: small ;}
P {font-family: times, "Times New Roman", serif ;}
8. Content (derived) selector
Li strong {font-style: italic; font-weight: normal}
Example: strong {color: red;} h2 {color: red;} strong h2 {color: blue ;}
Example: # sidebar {color: red} # sidebar p {color: blue ;}
Example:. fancy {color: red;}. fancy p {color: blue;}/li. fancy {color: black ;}
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