回答編集履歴
1
セレクタ修正
answer
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
解決法はいくつかありますが、どちらかといえば `:first-child` が要件に合っている気がしました。
|
3
3
|
|
4
4
|
```CSS
|
5
|
-
.list>li:first-of-type
|
5
|
+
.list>li:first-of-type>a:first-of-type {}
|
6
|
-
.list>li:first-child
|
6
|
+
.list>li:first-child>a:first-child {}
|
7
|
-
.list>:first-child
|
7
|
+
.list>:first-child>:first-child {}
|
8
8
|
```
|
9
9
|
|
10
10
|
Re: search_search さん
|