回答編集履歴

2

red

2018/02/16 04:37

投稿

ViiiiiN
ViiiiiN

スコア36

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  .content:nth-child(2n){
8
8
 
9
- background-color: blue;
9
+ background-color: red;
10
10
 
11
11
  }
12
12
 

1

nth-childだった

2018/02/16 04:37

投稿

ViiiiiN
ViiiiiN

スコア36

test CHANGED
@@ -4,15 +4,15 @@
4
4
 
5
5
  ```CSS
6
6
 
7
- .content:nth-of-type(2n){
7
+ .content:nth-child(2n){
8
8
 
9
- background-color: red;
9
+ background-color: blue;
10
10
 
11
11
  }
12
12
 
13
- .content:nth-of-type(4n){
13
+ .content:nth-child(4n){
14
14
 
15
- background-color: pink;
15
+ background-color: pink;
16
16
 
17
17
  }
18
18