<CSS選取器 >

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

將表單中所有checked的元素選取1. :checked(18)
將div是同一層的h3元素全部選取2. ul ~ h3(9)
在所有的li元素中最後一個元素選取3. li:nth-last-child(1)(34)
將表單中所有空元素全部選取(像<input/>)4. :empty(21)
將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取5. .bestdaylong, #bestdaylong(3)
將title屬性值有beautiful單詞的元素選取6. [title~=beautiful](16)
在所有的li元素中第一個元素選取7. li:nth-child(1)(33)
在所有的tr元素中每一個偶數的元素選取8. tr:nth-child(odd)(32)
在所有的p元素中屬性所有有同一個父親的每一個最後一個p元素(*)9. p:last-of-type(30)
將id屬性值有包含s的元素選取10. [id*=s](17)

解答:
001.【將表單中所有checked的元素選取】002.【將div是同一層的h3元素全部選取】003.【在所有的li元素中最後一個元素選取】004.【將表單中所有空元素全部選取(像<input/>)】005.【將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取】
006.【將title屬性值有beautiful單詞的元素選取】007.【在所有的li元素中第一個元素選取】008.【在所有的tr元素中每一個偶數的元素選取】009.【在所有的p元素中屬性所有有同一個父親的每一個最後一個p元素(*)】010.【將id屬性值有包含s的元素選取】