Id选择器 #
类选择器 .
标签选择器 e
后代选择器 e e
子代选择器 e > e
交集选择器 eee
并集选择器 e,e,e
相邻兄弟选择器 e + e
通用兄弟选择器 e ~ e
伪类选择器:
:link
:visited
:hover
:active
:first-child
:first-of-type
:last-child
:last-of-type
:nth-child
:nth-of-type
:nth-last-child
:nth-last-of-type
:only-child
:not
:target
:first-letter
:first-line
:disabled
:enabled
:checked
属性选择器:
[att]
[att = x]
[att ^= x]
[att $= x]
[att *= x]