2018.7.5游戏

1,plate  元素选择器

2,bento   元素选择器

3,plate#fancy  ID选择器

4,plate apple  复合选择器

5,#fancy pickcle   复合选择器

6,.small   类选择器

7,orange.small  类选择器

8,bento orange.small   复合选择器

9,bento,plate,.table,#pickle   群组选择器

10,*   通用选择器

11, plate *   通用选择器

12,plate+apple  兄弟选择器:兄弟元素+兄弟元素查找后面的一个兄弟元素

13,bento~pickle  兄弟选择器:兄弟元素~兄弟元素查找后面的所有兄弟元素

14,plate>apple   子元素选择器 :父元素>子元素

15,orange:first-child   其他子元素选择器;选择第一个子标签

16,:only-child  其他子元素选择器:选择单一的所有子标签

17, .small:last-child 其他子元素选择器:选择最后一个子标签

18,:nth-child(3)  其他子元素选择器:选择指定位置的子元素

19,:nth-last-child(4) 其他子元素选择器:选择指定位置的子元素(后面开始数)

20,apple:first-of-type  其他子元素选择器;选择指定位置第一个子标签

21,plate:nth-of-type(even)    

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

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

24,

25,bento:empty  子元素选择器(子元素为空)

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。