1.根选择器 :root(:root
就等同于html
选择器)
2.否定选择器 :not(input(type="submit")除了type为submit以外的input。)
3.第一个与最后一个子元素 :first-child
:last-child(第一个子元素,和最后一个子元素)
4.指定子元素选择器/奇偶选择器 :nth-child(n)
:nth-last-child(n)
5.第一个与最后一个匹配类型的子元素 :first-of-type
:last-of-type
6.唯一子元素选择器 only-child
7.被鼠标选中,高亮选择器 ::selection