質問編集履歴
2
css短縮
test
CHANGED
File without changes
|
test
CHANGED
@@ -202,44 +202,4 @@
|
|
202
202
|
|
203
203
|
}
|
204
204
|
|
205
|
-
.top_card_list li:last-of-type {
|
206
|
-
|
207
|
-
margin-right:0;
|
208
|
-
|
209
|
-
}
|
210
|
-
|
211
|
-
[class*="top_"] .number{
|
212
|
-
|
213
|
-
font-size:18px;
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
.top_card_list .em{
|
218
|
-
|
219
|
-
font-weight: bold;
|
220
|
-
|
221
|
-
display: block;
|
222
|
-
|
223
|
-
margin-bottom: 6px;
|
224
|
-
|
225
|
-
}
|
226
|
-
|
227
|
-
.top_card_list li {
|
228
|
-
|
229
|
-
padding: 16px;
|
230
|
-
|
231
|
-
border-radius: 4px;
|
232
|
-
|
233
|
-
background: #f9f9f9;
|
234
|
-
|
235
|
-
border: 1px solid #ccc;
|
236
|
-
|
237
|
-
border-top: 3px solid #0091f0;
|
238
|
-
|
239
|
-
margin-right: 24px;
|
240
|
-
|
241
|
-
flex: 0 0 205px;
|
242
|
-
|
243
|
-
}
|
244
|
-
|
245
205
|
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -135,3 +135,111 @@
|
|
135
135
|
|
136
136
|
|
137
137
|
ご教授頂けますと幸いです。
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
###16/12/07 追記
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
`align-content: space-between;`って
|
150
|
+
|
151
|
+
親要素の高さが設定されてないと効かないんですね…
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
今回の場合親要素の高さは指定できなかったので
|
156
|
+
|
157
|
+
`margin-bottom`での解決で最適解のようでした
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
メモ的にこちらの質問に追記させていただきます
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
```css
|
166
|
+
|
167
|
+
/* align-content効かせる用 */
|
168
|
+
|
169
|
+
.fl_simple {
|
170
|
+
|
171
|
+
display: -webkit-box;
|
172
|
+
|
173
|
+
display: -moz-box;
|
174
|
+
|
175
|
+
display: -ms-flexbox;
|
176
|
+
|
177
|
+
display: -webkit-flex;
|
178
|
+
|
179
|
+
display: flex;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
.top_card_list{
|
184
|
+
|
185
|
+
text-align: center;
|
186
|
+
|
187
|
+
flex-wrap: wrap;
|
188
|
+
|
189
|
+
justify-content: flex-start;
|
190
|
+
|
191
|
+
align-content: space-between;
|
192
|
+
|
193
|
+
-webkit-align-content: space-between;
|
194
|
+
|
195
|
+
list-style-type: none;
|
196
|
+
|
197
|
+
height:400px;
|
198
|
+
|
199
|
+
width:auto;
|
200
|
+
|
201
|
+
padding:8px;
|
202
|
+
|
203
|
+
}
|
204
|
+
|
205
|
+
.top_card_list li:last-of-type {
|
206
|
+
|
207
|
+
margin-right:0;
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
[class*="top_"] .number{
|
212
|
+
|
213
|
+
font-size:18px;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
.top_card_list .em{
|
218
|
+
|
219
|
+
font-weight: bold;
|
220
|
+
|
221
|
+
display: block;
|
222
|
+
|
223
|
+
margin-bottom: 6px;
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
.top_card_list li {
|
228
|
+
|
229
|
+
padding: 16px;
|
230
|
+
|
231
|
+
border-radius: 4px;
|
232
|
+
|
233
|
+
background: #f9f9f9;
|
234
|
+
|
235
|
+
border: 1px solid #ccc;
|
236
|
+
|
237
|
+
border-top: 3px solid #0091f0;
|
238
|
+
|
239
|
+
margin-right: 24px;
|
240
|
+
|
241
|
+
flex: 0 0 205px;
|
242
|
+
|
243
|
+
}
|
244
|
+
|
245
|
+
```
|