CSS選取器

班級:座號:姓名:
1.(4) h1       1. 將id屬性值有包含s的元素選取
2.(27) h1:hover       2. 在h1中若滑鼠移過去就選取
3.(28) p:lang(it)       3. 將id屬性值是L開頭的元素選取
4.(17) [id*=s]       4. 在所有的p元素中屬性lang的值是it開頭
5.(16) [title~=beautiful]       5. 在所有的p元素中找到第一行選取(P後面直接加上其它元素如B就不會被選取)
6.(34) li:nth-last-child(1)       6. 將所有h1元素選取
7.(15) [id^=L]       7. 在所有的li元素中最後一個元素選取
8.(12) [id=my-Address]       8. 將title屬性值有beautiful單詞的元素選取
9.(36) li:nth-last-of-type(2)       9. 在所有的li元素中倒數第二個元素選取
10.(25) p::first-line       10. 將id屬性值是my-Address的元素選取

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