/*属性选择器*/
E[foo]
E[foo="bar"]
E[foo~="bar"]
E[foo^="bar"]
E[foo*="bar"]
E[foo$="bar"]
E[foo|="bar"]
/*结构伪类选择器*/
:root;
:nth-child(n);
:nth-last-child(n);
:nth-of-type(n);
:nth-last-of-type(n);
:last-child;
:first-of-type;
:last-of-type;
:only-child;
:only-of-type;
:empty;
/*UI伪类选择器*/
/*只有当元素处于某种状态下时才起作用*/
:enabled;
:disabled;
:checked;
/*其他选择器*/
E~F
E:not(s)
E:target//当存在URL指向该元素时,样式效果才有效
E[foo]
E[foo="bar"]
E[foo~="bar"]
E[foo^="bar"]
E[foo*="bar"]
E[foo$="bar"]
E[foo|="bar"]
/*结构伪类选择器*/
:root;
:nth-child(n);
:nth-last-child(n);
:nth-of-type(n);
:nth-last-of-type(n);
:last-child;
:first-of-type;
:last-of-type;
:only-child;
:only-of-type;
:empty;
/*UI伪类选择器*/
/*只有当元素处于某种状态下时才起作用*/
:enabled;
:disabled;
:checked;
/*其他选择器*/
E~F
E:not(s)
E:target//当存在URL指向该元素时,样式效果才有效