:first-child 选择父元素的第一个子元素
:last-child 选择父元素的"倒数"第一个子元素
:nth-child(n) 选择父元素的第n个子元素 可以是(2n+1 | odd | even)
:nth-last-child(n) 选择父元素的 “ 倒数 ” 第n个子元素
:nth-of-type(n) 出现的第n个子元素 (同一类型)
:nth-last-of-type 出现的到时第n个子元素 (同一类型)
:first-of-type选择父元素的第一个子元素 (同一类型)
:last-of-type选择父元素的"倒数"第一个子元素(同一类型)
only-child 只能有一个子元素
only-of-type只能有一个子元素 (同一类型)