1.1 CSS3 选择器
1. 基本选择器 (6个)
2. 层级选择器 (4个)
3. 属性选择器 (5个)
[attrname]
[attrname="value"]
[attrname^="value"]
[attrname$="value"]
[attrname*="value"]
4. 伪类选择器(23个)
4.1 动态伪类(5个)
:link :visited :hover :active :focus
4.2 目标伪类(1个)
:target
4.3 语言伪类(1个)
:lang()
4.4 UI元素伪类(3个)
:enabled
:disabled
:checked
4.5 结构伪类选择器(12个)
:first-child
:last-child
:nth-child(n)
:nth-last-child(n)
:only-child
:first-of-type
:last-of-type
:nth-of-type(n)
:nth-last-of-type(n)
:only-of-type
:empty
:root
4.6 否定伪类(1个)
:not(选择器)
5. 伪元素选择器(6个)
::first-letter
::first-line
::before
::after
::selection
::placeholder