<CSS選取器 >

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

將id屬性值是ess結尾的元素選取1. [id$=ess](13)
在所有的li元素中第一個元素選取2. li:nth-child(1)(33)
將所有h1跟p元素選取3. h1, p(5)
將所有有設定id屬性的元素全部選取4. [id](11)
將表單中所有空元素全部選取(像<input/>)5. :empty(21)
將在ul後面是第一個h3元素選取6. ul + h3(8)
將id屬性值是L開頭的元素選取7. [id^=L](15)
將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取8. .bestdaylong, #bestdaylong(3)
在所有的tr元素中每一個偶數的元素選取9. tr:nth-child(odd)(32)
將表單中所有checked的元素選取10. :checked(18)

解答:
001.【將id屬性值是ess結尾的元素選取】002.【在所有的li元素中第一個元素選取】003.【將所有h1跟p元素選取】004.【將所有有設定id屬性的元素全部選取】005.【將表單中所有空元素全部選取(像<input/>)】
006.【將在ul後面是第一個h3元素選取】007.【將id屬性值是L開頭的元素選取】008.【將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取】009.【在所有的tr元素中每一個偶數的元素選取】010.【將表單中所有checked的元素選取】