Reading books for the "CSS3 Cheats" electronics Industry Press Original is the missing Manual series
This article is for the Knowledge directory for later use and re-learning
1. Style Sheets
1.1 Internal style Sheets The truth is chaos.
1.2 External style sheet external Dafa good
2. Selector
2.1 Tab Selector Overall control
Class 2.2 Selectors precisely control class can be repeated
2.3 ID Selector Control Special page element ID is unique one element can only have one cannot be duplicated
2.4 Universal Selector (*)
2.5 Building a group selector such as H1,H2,H3,H4,.QQQW, #banner {} (different types of selectors can be used)
2.6 Derived selectors simply means selecting labels based on context
2.7 Pseudo-class and pseudo-elements
2.7.1 defining a style for a link
A:link
a:visited
A:hover:hover pseudo-class can be used for other labels such as P:hover. High:hover
A:active
2.7.2 defining a style for a paragraph
: First-letter
: First-line
(these 2 are pseudo-elements CSS3 modified the use of these pseudo-elements and added a quotation mark such as: First-line but CSS in order to better support the old version of the current syntax can ignore this one)
2.7.3 cognition of more pseudo-classes and pseudo-elements
: Foucs
CSS Learning Notes