CSS選取器

班級:座號:姓名:
1.(35) li:nth-of-type(2)       1. 在所有的p元素中屬性最後一個p元素
2.(5) h1, p       2. 將id屬性值有包含s的元素選取
3.(17) [id*=s]       3. 將在ul後面是第一個h3元素選取
4.(15) [id^=L]       4. 將class名稱是bestdaylong的元素選取
5.(1) .bestdaylong       5. 將所有h1跟p元素選取
6.(13) [id$=ess]       6. 在所有的li元素中第二個元素選取
7.(34) li:nth-last-child(1)       7. 將id屬性值是L開頭的元素選取
8.(29) p:last-child       8. 在所有的p元素中找到第一行選取(P後面直接加上其它元素如B就不會被選取)
9.(25) p::first-line       9. 將id屬性值是ess結尾的元素選取
10.(8) ul + h3       10. 在所有的li元素中最後一個元素選取

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