餐厅游戏

1.元素选择器:plate[图片上传中...(1.png-64caa9-1536492187011-0)]

2.元素选择器:bento
3.ID选择器:#fancy
4.后代元素选择器:plate apple
5.ID选择器:#fancy pickle
6.类选择器:.small
7.类选择器:orange.small
8.后代元素选择器:bento apple
9.并集选择器:plate,bento
10.通配符选择器:*
11.通配符选择器:plate *
12.兄弟选择器:plate+apple
13.兄弟选择器:bento~pickle
14.子元素选择器:plate>apple
15.第一个子元素:orange:first-child
16.apple,pickle.small:only-child
17.最后一个子元素:apple:last-child,pickle:last-child
18.指定位置的子元素:plate:nth-child(3)

20.apple:first-of-type
21.plate:nth-of-type(even)
22.plate:nth-of-type(6n+3),plate:nth-of-type(6n+5)
23.apple:only-of-type
24.orange:last-of-type,apple:last-of-type
25.bento:empty
26.否定伪类:apple:not(.small)

你可能感兴趣的:(餐厅游戏)