通配符选择器
* {}
元素选择器
element {}
类选择器
.class {}
ID 选择器
#id {}
属性选择器
[attribute] {}
[attribute=value] {}
[attribute~=value] {}
[attribute|=value] {}
[attribute^=value] {}
[attribute$=value] {}
[attribute*=value] {}
组选择器
element , element {}
后代选择器
element element {}
子元素选择器
element > element {}
相邻兄弟选择器
element + element {}
通用兄弟选择器
element ~ element {}
伪元素选择器
:active {}
:after {}
:before {}
:checked {}
:disabled {}
:empty {}
:enabled
:first-child {}
:first-letter {}
:first-line {}
:first-of-type {}
:focus {}
:hover {}
:in-range {}
:invalid {}
:lang() {}
:last-child {}
:last-of-type {}
:link {}
:not {}
:nth-child() {}
:nth-last-child() {}
:nth-last-of-type() {}
:nth-of-type() {}
:only-of-type {}
:only-child {}
:optional {}
:out-of-range {}
:read-only {}
:read-write {}
:required {}
:root {}
::selection {}
:target {}
:valid {}
:visited {}