p:first-of-type 选择其父元素的首个P元素
p:last-of-type 选择其父元素的最后一个P元素
p:only-of-type 选择其父元素的唯一一个p元素(不能有第二个P元素,其他元素可以有)
P:only-child 父元素中只有一个子元素的p元素
p:last-child: 父元素中最后一个子元素为p元素的p元素
element:nth-child(n): 父元素中第n个子元素是p元素的p元素
表单元素:
:enable 选择已启动的元素
:disable 选择已禁止的元素
:checked 选择每个被选中的元素