回答編集履歴
1
セレクタ修正
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
:first-childは、その要素が見つかる最初の要素ではなく、**タグに関わらず最初の要素のみ**で動作します。
|
2
2
|
|
3
|
-
```#company table tr td:first-child```は存在しないので、thに続くtdを取得したい場合は、```#company table tr:first-child + td```か
|
3
|
+
```#company table tr td:first-child```は存在しないので、thに続くtdを取得したい場合は、```#company table tr th:first-child + td```か
|
4
4
|
|
5
5
|
```#company table tr td:nth-child(2)```とするのがいいでしょう。
|