11-26

11,plate * 通用选择器
12,plate + apple 兄弟选择器
13,bento ~ pickle 兄弟选择器
14,plate > apple 父子选择器
15,plate orange:first-child 子元素选择器
16,plate *:only-child 通用选择器
17,#fancy *:last-child , plate + pickle 通用选择器
18,plate:nth-child(3) 子元素选择器
19,bento:nth-last-child(3) 子元素选择器
20,apple:first-of-type 子元素选择器
21,plate:nth-of-type(2n) 子元素选择器
22,plate:nth-of-type(2n+3) 子元素选择器
23,plate apple.small:only-of-type 子元素选择器
24, orange:last-of-type , apple:last-of-type 子元素选择器
25,bento:empty
26,apple:not(.small) 否定伪类

猜你喜欢

转载自blog.csdn.net/amzzsthl/article/details/85134161
今日推荐