質問編集履歴
1
ソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,3 +13,305 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
コードを見て解決策がありましたらご教授いただきたいです。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```<!doctype html>
|
20
|
+
|
21
|
+
<html>
|
22
|
+
|
23
|
+
<head>
|
24
|
+
|
25
|
+
<meta charset="utf-8">
|
26
|
+
|
27
|
+
<title>無題ドキュメント</title>
|
28
|
+
|
29
|
+
</head>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<body>
|
34
|
+
|
35
|
+
<style>
|
36
|
+
|
37
|
+
.aspectwrapper {
|
38
|
+
|
39
|
+
position: relative;
|
40
|
+
|
41
|
+
width:50%;
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
background:#000000;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
.aspectwrapper:after{
|
50
|
+
|
51
|
+
padding-top: 100%;
|
52
|
+
|
53
|
+
display: block;
|
54
|
+
|
55
|
+
content: “”;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.aspectwrapper > .pic_content{
|
60
|
+
|
61
|
+
position: absolute;
|
62
|
+
|
63
|
+
top: 0px;
|
64
|
+
|
65
|
+
left: 0px;
|
66
|
+
|
67
|
+
bottom: 0px;
|
68
|
+
|
69
|
+
right: 0px;
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
*::before, *::after {
|
78
|
+
|
79
|
+
box-sizing: border-box;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.aspectwrapper-7::after,{
|
84
|
+
|
85
|
+
clear: both;
|
86
|
+
|
87
|
+
content: "";
|
88
|
+
|
89
|
+
display: block;
|
90
|
+
|
91
|
+
padding-top: 100%;
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
.aspectwrapper-7::after, .aspectwrapper-12::after {
|
96
|
+
|
97
|
+
clear: both;
|
98
|
+
|
99
|
+
content: "";
|
100
|
+
|
101
|
+
display: block;
|
102
|
+
|
103
|
+
padding-top: 100%;
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
*::before, *::after {
|
108
|
+
|
109
|
+
box-sizing: border-box;
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
.aspectwrapper-7, .aspectwrapper-gd-7, .aspectwrapper-pt-7, .aspectwrapper-slv-7, .aspectwrapper-7-2y, .aspectwrapper-gd-7-2y, .aspectwrapper-pt-7-2y, .aspectwrapper-slv-7-2y {
|
114
|
+
|
115
|
+
width: calc(100% / 1);
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
.aspectwrapper-7, .aspectwrapper-7-2x,.aspectwrapper-7-2w, .aspectwrapper-8-2w, .aspectwrapper-9-2w, .aspectwrapper-10-2w, .aspectwrapper-11-2w, .aspectwrapper-12-2w, .aspectwrapper-gd-1-2w, .aspectwrapper-gd-2-2w, .aspectwrapper-gd-3-2w, .aspectwrapper-gd-4-2w, .aspectwrapper-gd-5-2w, .aspectwrapper-gd-6-2w, .aspectwrapper-pt-1-2w, .aspectwrapper-pt-2-2w, .aspectwrapper-pt-3-2w, .aspectwrapper-pt-4-2w, .aspectwrapper-pt-5-2w, .aspectwrapper-pt-6-2w, .aspectwrapper-pt-7-2w, .aspectwrapper-pt-8-2w, .aspectwrapper-pt-9-2w, .aspectwrapper-pt-10-2w, .aspectwrapper-pt-11-2w, .aspectwrapper-pt-12-2w, .aspectwrapper-slv-1-2w, .aspectwrapper-slv-2-2w, .aspectwrapper-slv-3-2w, .aspectwrapper-slv-4-2w, .aspectwrapper-slv-5-2w, .aspectwrapper-slv-6-2w, .aspectwrapper-slv-7-2w, .aspectwrapper-slv-8-2w, .aspectwrapper-slv-9-2w, .aspectwrapper-slv-10-2w, .aspectwrapper-slv-11-2w, .aspectwrapper-slv-12-2w, .aspectwrapper-1-2y, .aspectwrapper-2-2y, .aspectwrapper-3-2y, .aspectwrapper-4-2y, .aspectwrapper-5-2y, .aspectwrapper-6-2y, .aspectwrapper-7-2y, .aspectwrapper-8-2x, .aspectwrapper-9-2x, .aspectwrapper-10-2x, .aspectwrapper-11-2x, .aspectwrapper-12-2x, .aspectwrapper-gd-1-2y, .aspectwrapper-gd-2-2y, .aspectwrapper-gd-3-2y, .aspectwrapper-gd-4-2y, .aspectwrapper-gd-5-2y, .aspectwrapper-gd-6-2y, .aspectwrapper-gd-7-2y, .aspectwrapper-gd-8-2y, .aspectwrapper-gd-9-2y, .aspectwrapper-gd-10-2y, .aspectwrapper-gd-11-2y, .aspectwrapper-gd-12-2y, .aspectwrapper-pt-1-2y, .aspectwrapper-pt-2-2y, .aspectwrapper-pt-3-2y, .aspectwrapper-pt-4-2y, .aspectwrapper-pt-5-2y, .aspectwrapper-pt-6-2y, .aspectwrapper-pt-7-2y, .aspectwrapper-pt-8-2y, .aspectwrapper-pt-9-2y, .aspectwrapper-pt-10-2y, .aspectwrapper-pt-11-2y, .aspectwrapper-pt-12-2y, .aspectwrapper-slv-1-2y, .aspectwrapper-slv-2-2y, .aspectwrapper-slv-3-2y, .aspectwrapper-slv-4-2y, .aspectwrapper-slv-5-2y, .aspectwrapper-slv-6-2y, .aspectwrapper-slv-7-2y, .aspectwrapper-slv-8-2y, .aspectwrapper-slv-9-2y, .aspectwrapper-slv-10-2y, .aspectwrapper-slv-11-2y, .aspectwrapper-slv-12-2y {
|
120
|
+
|
121
|
+
float: left;
|
122
|
+
|
123
|
+
overflow: hidden;
|
124
|
+
|
125
|
+
position: relative;
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
* {
|
132
|
+
|
133
|
+
box-sizing: border-box;
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
*::-moz-selection {
|
138
|
+
|
139
|
+
background: #fcc800 none repeat scroll 0 0;
|
140
|
+
|
141
|
+
color: #fff;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
*::-moz-selection {
|
146
|
+
|
147
|
+
background: #fcc800 none repeat scroll 0 0;
|
148
|
+
|
149
|
+
color: #fff;
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
*::before, *::after {
|
154
|
+
|
155
|
+
box-sizing: border-box;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
*::before, *::after {
|
160
|
+
|
161
|
+
box-sizing: border-box;
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
.pic_content, .aspectwrapper-7 > .pic_content, .aspectwrapper-7-2x > .pic_content, .aspectwrapper-7-2y > .pic_content, .aspectwrapper-7-2w > .pic_content {
|
168
|
+
|
169
|
+
bottom: 0;
|
170
|
+
|
171
|
+
height: 100%;
|
172
|
+
|
173
|
+
left: 0;
|
174
|
+
|
175
|
+
position: absolute;
|
176
|
+
|
177
|
+
right: 0;
|
178
|
+
|
179
|
+
top: 0;
|
180
|
+
|
181
|
+
transition: all 0.5s ease 0s;
|
182
|
+
|
183
|
+
width: 100%;
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
* {
|
188
|
+
|
189
|
+
box-sizing: border-box;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
*::-moz-selection {
|
194
|
+
|
195
|
+
background: #fcc800 none repeat scroll 0 0;
|
196
|
+
|
197
|
+
color: #fff;
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
.pic_content {
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
display: -webkit-box;
|
206
|
+
|
207
|
+
display: -moz-box;
|
208
|
+
|
209
|
+
display:box;
|
210
|
+
|
211
|
+
-webkit-box-pack:center;
|
212
|
+
|
213
|
+
-moz-box-pack:center;
|
214
|
+
|
215
|
+
box-pack:center;
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
-webkit-box-align:center;
|
220
|
+
|
221
|
+
-moz-box-align:center;
|
222
|
+
|
223
|
+
box-align:center;
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
.pic_content img{
|
230
|
+
|
231
|
+
max-height:100%;
|
232
|
+
|
233
|
+
max-width:100%;
|
234
|
+
|
235
|
+
position: relative;
|
236
|
+
|
237
|
+
top: 50%;
|
238
|
+
|
239
|
+
-webkit-transform: translateY(-50%);
|
240
|
+
|
241
|
+
-ms-transform: translateY(-50%);
|
242
|
+
|
243
|
+
transform: translateY(-50%);
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</style>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<div class="aspectwrapper-7" style="background:#ff0000;">
|
258
|
+
|
259
|
+
<div class="pic_content">
|
260
|
+
|
261
|
+
<img src="http://sokuup.net/img/soku_08804.jpg"/ style="max-width:100%; max-height:100%; margin:auto; vertical-align:middle;display: block;
|
262
|
+
|
263
|
+
margin-left: auto;">
|
264
|
+
|
265
|
+
</div>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<div class="aspectwrapper-7" style="background:#ff0000;">
|
274
|
+
|
275
|
+
<div class="pic_content">
|
276
|
+
|
277
|
+
<img src="http://pds.exblog.jp/pds/1/201012/24/71/e0140171_18243710.jpg"/ style="max-width:100%; margin:auto; max-height:100%; vertical-align:middle;display: block;
|
278
|
+
|
279
|
+
margin-left: auto;">
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<div class="aspectwrapper-7" style="background:#ff0000;">
|
290
|
+
|
291
|
+
<div class="pic_content">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<img src="http://farm4.staticflickr.com/3636/3577220863_9394cfce18_n.jpg"/ style="max-width:100%; margin:auto; max-height:100%; vertical-align:middle;display: block;
|
296
|
+
|
297
|
+
margin-left: auto;">
|
298
|
+
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</body>
|
312
|
+
|
313
|
+
</html>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
```
|