<CSS選取器 >

免費免註冊,彰化一整天線上測驗:http://exam.bestdaylong.com/link2348.htm

將id屬性值是my-Address的元素選取1. [id=my-Address](12)
將所有h1跟p元素選取2. h1, p(5)
在所有的p元素中找到第一行選取(P後面直接加上其它元素如B就不會被選取)3. p::first-line(25)
在所有的p元素中找到第一個元素選取4. p:first-child(23)
在所有的li元素中第二個元素選取5. li:nth-of-type(2)(35)
將所有h1元素選取6. h1(4)
在所有的tr元素中每一個偶數的元素選取7. tr:nth-child(odd)(32)
在所有的li元素中第一個元素選取8. li:nth-child(1)(33)
將id名稱是bestdaylong的元素選取9. #bestdaylong(2)
將id屬性值是L開頭的元素選取10. [id^=L](15)

解答:
001.【將id屬性值是my-Address的元素選取】002.【將所有h1跟p元素選取】003.【在所有的p元素中找到第一行選取(P後面直接加上其它元素如B就不會被選取)】004.【在所有的p元素中找到第一個元素選取】005.【在所有的li元素中第二個元素選取】
006.【將所有h1元素選取】007.【在所有的tr元素中每一個偶數的元素選取】008.【在所有的li元素中第一個元素選取】009.【將id名稱是bestdaylong的元素選取】010.【將id屬性值是L開頭的元素選取】