|
|
|
考試題目 |
 |
| 1.#bestdaylong (2) |
| | 將id名稱是bestdaylong的元素選取 |
| 2..bestdaylong, #bestdaylong (3) |
| | 將class名稱是bestdaylong或將id名稱是bestdaylong的元素選取 |
| 3.div span (6) |
| | 將在div後面是span元素全部選取 |
| 4.ul ~ h3 (9) |
| | 將div是同一層的h3元素全部選取 |
| 5.[id$=ess] (13) |
| | 將id屬性值是ess結尾的元素選取 |
| 6.[id^=L] (15) |
| | 將id屬性值是L開頭的元素選取 |
| 7.[id*=s] (17) |
| | 將id屬性值有包含s的元素選取 |
| 8.p:lang(it) (28) |
| | 在所有的p元素中屬性lang的值是it開頭 |
| 9.li:nth-of-type(2) (35) |
| | 在所有的li元素中第二個元素選取 |
| 10.li:nth-last-of-type(2) (36) |
| | 在所有的li元素中倒數第二個元素選取 |
|
|
|
|
|
|