CSS選取器

班級:座號:姓名:
1.(2) #bestdaylong       1. 將在ul後面是第一個h3元素選取
2.(21) :empty       2. 將表單中所有空元素全部選取(像<input/>)
3.(12) [id=my-Address]       3. 將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取
4.(18) :checked       4. 將id名稱是bestdaylong的元素選取
5.(1) .bestdaylong       5. 將id屬性值是my-Address的元素選取
6.(8) ul + h3       6. 將class名稱是bestdaylong的元素選取
7.(35) li:nth-of-type(2)       7. 在所有的li元素中第二個元素選取
8.(3) .bestdaylong, #bestdaylong       8. 將所有h1跟p元素選取
9.(5) h1, p       9. 在h1中若滑鼠移過去就選取
10.(27) h1:hover       10. 將表單中所有checked的元素選取

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