回答編集履歴
1
追記
answer
CHANGED
@@ -48,4 +48,57 @@
|
|
48
48
|
</div>
|
49
49
|
</body>
|
50
50
|
</html>
|
51
|
+
```
|
52
|
+
|
53
|
+
---
|
54
|
+
**(追記)**
|
55
|
+
```HTML
|
56
|
+
<!DOCTYPE html>
|
57
|
+
<html lang="ja">
|
58
|
+
<head>
|
59
|
+
<meta charset="UTF-8">
|
60
|
+
<title>タイトル</title>
|
61
|
+
<style type="text/css">
|
62
|
+
body {
|
63
|
+
margin: 0;
|
64
|
+
padding: 0;
|
65
|
+
width: 100%;
|
66
|
+
}
|
67
|
+
|
68
|
+
img {
|
69
|
+
width: 100%;
|
70
|
+
}
|
71
|
+
|
72
|
+
.room_cards {
|
73
|
+
margin: -5px;
|
74
|
+
display: -webkit-flex; /* Safari */
|
75
|
+
display: flex;
|
76
|
+
-webkit-flex-wrap: wrap; /* Safari */
|
77
|
+
flex-wrap: wrap;
|
78
|
+
-webkit-align-items: stretch; /* Safari */
|
79
|
+
align-items: stretch;
|
80
|
+
justify-content: flex-start;
|
81
|
+
}
|
82
|
+
|
83
|
+
.card {
|
84
|
+
margin: 5px;
|
85
|
+
flex-basis: calc(25% - 10px);
|
86
|
+
}
|
87
|
+
</style>
|
88
|
+
</head>
|
89
|
+
<body>
|
90
|
+
<div class="room_cards">
|
91
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
92
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
93
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
94
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
95
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
96
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
97
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
98
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
99
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
100
|
+
<div class="card"><img src="http://placehold.it/200x200/27709b/ffffff"></div>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
51
104
|
```
|