HTML5--02Day(选择器游戏)

1.plate (元素选择器

2.bento (元素选择器

3.#fancy (id选择器

4.plate apple (子元素选择器

5.#fancy pickle (id选择器

6. .small (类选择器

7.bento .small,plate .small (并集选择器

8.bento orange (子元素选择器

9.plate bento (子元素选择器

10. .table,* (通配选择器

11.plate * (通配选择器

12.plate+apple (相邻兄弟选择器

13.pickle~pickle (相邻兄弟选择器

14.plate>apple (相邻兄弟选择器

15.orange:first-child (子元素选择器

16.plate apple,plate .small:only-child (并集选择器

17.plate apple,pickle (并集选择器

18.plate:nth-child(3) (其他子元素选择器

19.bento:nth-child(2) (其他子元素选择器

20.apple:first-of-type (其他子元素选择器

21.plate:nth-of-type(even) (其他子元素选择器

22.plate:nth-of-type(2n+3)(子元素选择器

23.apple:only-of-type (子元素选择器

24..small:only-of-type (子元素选择器

25.bemto:empty (子元素选择器

26.apple:not(.small) (not选择器

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容