回答編集履歴
1
修正
answer
CHANGED
@@ -26,52 +26,58 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
.container {
|
29
|
+
display: flex;
|
30
|
+
flex-direction: column;
|
31
|
+
}
|
32
|
+
|
33
|
+
.header {
|
34
|
+
order: 1;
|
35
|
+
}
|
36
|
+
|
37
|
+
.left, .right {
|
29
38
|
width: 100%;
|
39
|
+
min-height: 300px;
|
30
40
|
}
|
31
41
|
|
32
42
|
.left {
|
33
43
|
background-color: yellow;
|
34
|
-
min-height: 300px;
|
35
|
-
width: 50%;
|
36
|
-
float: left;
|
37
44
|
}
|
38
45
|
|
39
46
|
.right {
|
40
47
|
background-color: blue;
|
41
|
-
min-height: 300px;
|
42
|
-
|
48
|
+
order: 2;
|
43
|
-
float: right;
|
44
49
|
}
|
45
50
|
|
46
|
-
.clearfix::after {
|
47
|
-
content: " ";
|
48
|
-
display: block;
|
49
|
-
clear: both;
|
50
|
-
}
|
51
|
-
|
52
51
|
@media (max-width: 600px) {
|
53
52
|
.container {
|
53
|
+
width: 100%;
|
54
|
-
display:
|
54
|
+
display: inline;
|
55
|
-
flex-direction: column;
|
56
55
|
}
|
57
56
|
|
58
|
-
.header {
|
57
|
+
.header, .left, .right {
|
59
|
-
order:
|
58
|
+
order: 0;
|
60
59
|
}
|
61
60
|
|
62
|
-
.left, .right {
|
63
|
-
width: 100%;
|
64
|
-
min-height: 300px;
|
65
|
-
}
|
66
|
-
|
67
61
|
.left {
|
68
62
|
background-color: yellow;
|
63
|
+
min-height: 300px;
|
64
|
+
width: 50%;
|
65
|
+
float: left;
|
69
66
|
}
|
70
67
|
|
71
68
|
.right {
|
72
69
|
background-color: blue;
|
70
|
+
min-height: 300px;
|
73
|
-
|
71
|
+
width: 50%;
|
72
|
+
float: right;
|
74
73
|
}
|
74
|
+
|
75
|
+
.clearfix::after {
|
76
|
+
content: " ";
|
77
|
+
display: block;
|
78
|
+
clear: both;
|
79
|
+
}
|
80
|
+
|
75
81
|
}
|
76
82
|
</style>
|
77
83
|
</head>
|