選擇器小游戲

1:plate 元素選擇器 
2:bento 元素選擇器
 3:#fancy ID選擇器 
4:plate apple 后代元素選擇器
 5:#fancy pickle 復合選擇器 
6:.small 類選擇器 
7:bento .small,plate .small 并集選擇器 
8:bento orange 后代元素選擇器 
9:plate,bento,plate 并集選擇器 
10:* 通配選擇器 
11:plate * 后代元素選擇器 
12:plate +apple 兄弟元素選擇器 
13:bento~pickle 兄弟元素選擇器 
14:plate > apple 子元素選擇器 
15:orange:first-child 子元素選擇器 
16::only-child 子元素選擇器 
17:.small:last-child 子元素選擇器 
18:plate: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:.small:nth-child(even)子元素選擇器 
25:bento:empty子元素選擇器 
26:apple:not(.small)not選擇器
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容