- 元素选择器:plate
- 元素选择器:bento
- id选择器:#fancy
- 后代选择器:plate>apple
- 复合后代:plate#fancy>pickle
- 类选择器:.small
- 类选择器:orange.small
- 后代 类选择器:bento>apple.small
- 后代选择器:plate,bento
- 所有元素选择器:*
- 后代选择器:plate>
- 兄弟选择器: plate + apple
- 兄弟选择器:bento~ pickle
- 后代选择器:plate>apple
- 后代选择器+第一个后代选择器:plate>orange:first-of-type
- 后代选择器 复合选择器:plate>apple,plate>pickle
- 交集选择器 最后一个后代:#fancy apple,pickle:last
- 子选择器:plate:nth-child(3)
- 子选择器:bento:first-of-type
- first-of-type:apple:first-of-type
- 偶数-字选择器:plate:nth-child(even)
- 子选择器:plate:nth-child(2n+3)
- 子选择器(唯一选择器):apple:only-of-type
- 字选择器(last-of-type):orange:last-of-type ,apple:last-of-type
- 子选择器(empty):bento:empty
- 否定伪类:apple:not(.small)
网友评论