回答編集履歴
1
セレクタ修正、clearfix追加。重すぎ
test
CHANGED
@@ -3,6 +3,18 @@
|
|
3
3
|
ul {
|
4
4
|
|
5
5
|
text-align: center;
|
6
|
+
|
7
|
+
}
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
ul::after {
|
12
|
+
|
13
|
+
content: '';
|
14
|
+
|
15
|
+
display: block;
|
16
|
+
|
17
|
+
clear: both;
|
6
18
|
|
7
19
|
}
|
8
20
|
|
@@ -16,9 +28,9 @@
|
|
16
28
|
|
17
29
|
|
18
30
|
|
19
|
-
ul > li:nth-last-child(n+5)
|
31
|
+
ul > li:nth-last-child(n+5),
|
20
32
|
|
21
|
-
ul > li:nth-last-child(n+5)
|
33
|
+
ul > li:nth-last-child(n+5) ~ li {
|
22
34
|
|
23
35
|
float: left;
|
24
36
|
|