html選擇器的測試題答案

這是html選擇器的測試題:? html選擇器測試題--帶答案_免費(fèi)高速下載|百度網(wǎng)盤-分享無限制

1,plate??????

元素選擇器????????? 語法:標(biāo)簽名 { }

2,bento

元素選擇器???????? 語法:標(biāo)簽名 { }

3,#fancy

ID選擇器???????????? 語法:#id內(nèi)容 { }??????????

4,plate apple

復(fù)合選擇器(交集選擇器)????? 語法:選擇器1 選擇器2???????? (相當(dāng)于嵌套,選擇? 語法1 下面的 語法2)

5,#fancy pickle

屬于:復(fù)合選擇器(交集選擇器)????? 語法:選擇器1 選擇器2?? (#id內(nèi)容 選擇器2)

6,.small

類選擇器???????????? 語法:.className { }

7,##orange.small 或 bento orange.small,plate .small

屬于:復(fù)合選擇器(交集選擇器)????? 語法:選擇器1選擇器2?? (選擇器)

8,bento orange.small

群組選擇器(并集選擇器)?????????? 語法:選擇器1,選擇器2,選擇器3 { }

9,plate,bento

##元素選擇器??

10,*

通用選擇器??????????語法:*{ }

11,plate *

通用選擇器??????????語法:*{ }

12,plate:first-of-type+ .small,plate:last-of-type+ apple

兄弟選擇器???????????? 語法:??? 1,查找后邊一個(gè)兄弟元素??? 兄弟元素 + 兄弟元素{}

13,bento~pickle

兄弟選擇器???????????? 語法:??? 2,查找后邊所有的兄弟元素??? 兄弟元素 ~ 兄弟元素{}

14,plate>apple

子元素選擇器?????語法:父元素 > 子元素{}

15,plate:last-of-type :first-child

子元素選擇器? - 選擇最后一個(gè)子標(biāo)簽?????????? 語法: ? ? ? :last-child???

16,plate:first-of-type apple,plate:nth-of-type(2) .small

###子元素選擇器?????????? 語法: ? ? ? :first-child??? - 選擇第一個(gè)子標(biāo)簽 ? ? ? ?:first-of-type??? - 第一個(gè)類型????? :nth-of-type - 指定的位置

17,plate:first-of-type .small,pickle.small

? :first-child??? - 選擇第一個(gè)子標(biāo)簽 ? ?? 與??? ### 的連用、

18,plate:nth-of-type(3)

19,bento:nth-last-child(4)

20,apple:first-of-type

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

22.plate:nth-of-type(3),plate:nth-of-type(5)

23,plate:nth-of-type(2) .small

24,orange:last-of-type,apple:last-of-type

25,bento:not(bento:nth-of-type(2))

26,apple:not(apple:first-of-type.small)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容