属性选择器:
伪类选择器-root(根选择器)
:root 等同于 html
效果相等
伪类选择器-not
div:not([id="box"])
伪类选择器-empty 将没有任何内容的元素隐藏起来
p:empty{display:none}
:target 目标选择器,
URL 带有后面跟有锚名称 #,指向文档内某个具体的元素。这个被链接的元素就是目标元素(target element)。
:target 选择器可用于选取当前活动的目标元素。
:first-child|::last-child|:nth-child(n)|:nth-last-child(n)
:first-of-type|:last-of-type|:nth-of-type(n)|:nth-last-of-type(n)
:only-child|:only-of-type
------------------------------------------------------------------------->