回答編集履歴
1
htmlを編集しない場合の追記
answer
CHANGED
@@ -32,4 +32,33 @@
|
|
32
32
|
</body>
|
33
33
|
|
34
34
|
</html>
|
35
|
+
```
|
36
|
+
|
37
|
+
htmlを編集しない場合の追記
|
38
|
+
```css
|
39
|
+
#img-list {
|
40
|
+
list-style-type: none;
|
41
|
+
display: flex;
|
42
|
+
flex-wrap: wrap;
|
43
|
+
}
|
44
|
+
|
45
|
+
#img-list::before {
|
46
|
+
content: "";
|
47
|
+
width: 100%;
|
48
|
+
order: 1;
|
49
|
+
}
|
50
|
+
|
51
|
+
ul li:nth-child(n+3):nth-child(-n+4) {
|
52
|
+
order: 2;
|
53
|
+
}
|
54
|
+
|
55
|
+
#img-list::after {
|
56
|
+
content: "";
|
57
|
+
width: 100%;
|
58
|
+
order: 3;
|
59
|
+
}
|
60
|
+
|
61
|
+
ul li:nth-child(n+5):nth-child(-n+6) {
|
62
|
+
order: 4;
|
63
|
+
}
|
35
64
|
```
|