|
|
|
考試題目 |
 |
| 1.div span (6) |
| | 將在div後面是span元素全部選取 |
| 2.[id] (11) |
| | 將所有有設定id屬性的元素全部選取 |
| 3.[id$=ess] (13) |
| | 將id屬性值是ess結尾的元素選取 |
| 4.[id|=my] (14) |
| | 將id屬性值是my或是單詞my的元素選取 |
| 5.:checked (18) |
| | 將表單中所有checked的元素選取 |
| 6.:focus (22) |
| | 將游標所在的元表選取(若沒有會選取第一個文字方塊) |
| 7.p:first-child (23) |
| | 在所有的p元素中找到第一個元素選取 |
| 8.p::first-letter (24) |
| | 在所有的p元素中找到第一個字元選取 |
| 9.p:lang(it) (28) |
| | 在所有的p元素中屬性lang的值是it開頭 |
| 10.li:nth-last-of-type(2) (36) |
| | 在所有的li元素中倒數第二個元素選取 |
|
|
|
|
|
|