E:first-of-type: Matches the same type The first sibling element E
E:last-of-type: matches the same type The last sibling element E
E:first-child: matches the nth child element of its parent element, the first number For 1
E:last-child: Match the nth child element from the last of its parent element, the first number is 1
##E:nth-child(n): Select the # that belongs to the nth child element of its parent element
nth-last-child(n): Select the # that belongs to the nth last child element of its parent element
: Select the only child element that belongs to its parent element (only one can be selected)
: Select the only sibling element that belongs to its parent element
: Matches the nth sibling element E of the same type.
: Matches the nth sibling element from the bottom of the same type E
Hyperlink status sequence:
: Set the style of hyperlink a before it is visited
: Set Hyperlink a has an outdated style when its link address has been visited
: Sets the style of the element when its mouse hovers Style
: Set the style of the element when it is activated by the user (an event that occurs between mouse click and release)
: Select the root element of the document
E:empty: Selects every E element (including text nodes) that has no child elements.
E:checked: Matches the selected element E on the user interface. (Mostly used when the input type is radio and checkbox)
enabled: Select each enabled The E element (the text box does not have the disabled attribute)
: Select each disabled E element (the text box has the disabled attribute) E::
selectionThe above is the detailed content of Introduction to new features of CSS3. For more information, please follow other related articles on the PHP Chinese website!