CSS選取器

班級:座號:姓名:
1.(10) *       1. 將所有的元素全部選取
2.(33) li:nth-child(1)       2. 在所有的區段中找出第一個p元素選取
3.(28) p:lang(it)       3. 在所有的li元素中第一個元素選取
4.(29) p:last-child       4. 將id屬性值是ess結尾的元素選取
5.(2) #bestdaylong       5. 將所有h1跟p元素選取
6.(4) h1       6. 將id名稱是bestdaylong的元素選取
7.(26) p:first-of-type       7. 在所有的p元素中屬性最後一個p元素
8.(5) h1, p       8. 在所有的p元素中屬性lang的值是it開頭
9.(13) [id$=ess]       9. 將class名稱是bestdaylong的元素選取
10.(1) .bestdaylong       10. 將所有h1元素選取

解答: 1.【1】2.【3】3.【8】4.【7】5.【6】6.【10】7.【2】8.【5】9.【4】10.【9】