回答編集履歴
2
追記
test
CHANGED
@@ -145,3 +145,351 @@
|
|
145
145
|
</html>
|
146
146
|
|
147
147
|
```
|
148
|
+
|
149
|
+
追記
|
150
|
+
|
151
|
+
---
|
152
|
+
|
153
|
+
変更した箇所はソースコード中にコメントとして記述しました。
|
154
|
+
|
155
|
+
```HTML
|
156
|
+
|
157
|
+
<!DOCTYPE html>
|
158
|
+
|
159
|
+
<html lang="ja">
|
160
|
+
|
161
|
+
<head>
|
162
|
+
|
163
|
+
<meta charset="UTF-8">
|
164
|
+
|
165
|
+
<title>タイトル</title>
|
166
|
+
|
167
|
+
<style type="text/css">
|
168
|
+
|
169
|
+
body {
|
170
|
+
|
171
|
+
width: 100%;
|
172
|
+
|
173
|
+
margin: 0px;
|
174
|
+
|
175
|
+
padding: 0px;
|
176
|
+
|
177
|
+
background-color: white;
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
.main {
|
186
|
+
|
187
|
+
width: 100%;
|
188
|
+
|
189
|
+
height: 1000px;
|
190
|
+
|
191
|
+
padding: 100px 0px;
|
192
|
+
|
193
|
+
margin: 0px;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
.whole-photo {
|
200
|
+
|
201
|
+
margin-left: 70px;
|
202
|
+
|
203
|
+
margin-top: 50px;
|
204
|
+
|
205
|
+
position: relative;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.photoframe {
|
212
|
+
|
213
|
+
position: relative;
|
214
|
+
|
215
|
+
display: inline;
|
216
|
+
|
217
|
+
float: left;
|
218
|
+
|
219
|
+
width: 340px;
|
220
|
+
|
221
|
+
height: 430px;
|
222
|
+
|
223
|
+
overflow: hidden;
|
224
|
+
|
225
|
+
margin: 0 10px 20px;
|
226
|
+
|
227
|
+
padding: 15px;
|
228
|
+
|
229
|
+
background: #ffffff;
|
230
|
+
|
231
|
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
232
|
+
|
233
|
+
text-align: center;
|
234
|
+
|
235
|
+
-webkit-border-radius: 2px;
|
236
|
+
|
237
|
+
-moz-border-radius: 2px;
|
238
|
+
|
239
|
+
border-radius: 2px;
|
240
|
+
|
241
|
+
-moz-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
|
242
|
+
|
243
|
+
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
|
244
|
+
|
245
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
|
246
|
+
|
247
|
+
z-index: 1;
|
248
|
+
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
.photoframe .photo {
|
254
|
+
|
255
|
+
width: 340px;
|
256
|
+
|
257
|
+
height: 385px;
|
258
|
+
|
259
|
+
overflow: hidden;
|
260
|
+
|
261
|
+
margin: 0 0 10px;
|
262
|
+
|
263
|
+
padding: 0;
|
264
|
+
|
265
|
+
-moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
|
266
|
+
|
267
|
+
-webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
|
268
|
+
|
269
|
+
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
.photoframe img {
|
276
|
+
|
277
|
+
position: relative;
|
278
|
+
|
279
|
+
display: block;
|
280
|
+
|
281
|
+
margin: 0;
|
282
|
+
|
283
|
+
padding: 0;
|
284
|
+
|
285
|
+
z-index: -1;
|
286
|
+
|
287
|
+
width: 339px;
|
288
|
+
|
289
|
+
height: 359px;
|
290
|
+
|
291
|
+
}
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
.memo { /* noteからmemoに変更 */
|
296
|
+
|
297
|
+
width: 390px;
|
298
|
+
|
299
|
+
height: 460px;
|
300
|
+
|
301
|
+
float: right;
|
302
|
+
|
303
|
+
margin-right: 160px;
|
304
|
+
|
305
|
+
position: relative;
|
306
|
+
|
307
|
+
background-color: #ffffe7;
|
308
|
+
|
309
|
+
background-image: linear-gradient(rgba(241, 207, 164, 0.5) .1em, transparent .1em);
|
310
|
+
|
311
|
+
background-size: 100% 1.5em;
|
312
|
+
|
313
|
+
line-height: 1.5em;
|
314
|
+
|
315
|
+
}
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
.in {
|
320
|
+
|
321
|
+
padding-bottom: 20px;
|
322
|
+
|
323
|
+
font-size: 28px;
|
324
|
+
|
325
|
+
margin-top: 5px;
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
.letters {
|
334
|
+
|
335
|
+
padding-top: 10px;
|
336
|
+
|
337
|
+
padding-left: 20px;
|
338
|
+
|
339
|
+
padding-right: 20px;
|
340
|
+
|
341
|
+
font-size: 28px;
|
342
|
+
|
343
|
+
line-height: 130%;
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
.days {
|
350
|
+
|
351
|
+
text-align: center;
|
352
|
+
|
353
|
+
border: 1px solid black;
|
354
|
+
|
355
|
+
font-size: 22px;
|
356
|
+
|
357
|
+
margin-top: 100px;
|
358
|
+
|
359
|
+
/* ここから追加 */
|
360
|
+
|
361
|
+
margin-left: auto;
|
362
|
+
|
363
|
+
margin-right: auto;
|
364
|
+
|
365
|
+
/* ここまで追加 */
|
366
|
+
|
367
|
+
}
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
.days img {
|
372
|
+
|
373
|
+
width: 200px;
|
374
|
+
|
375
|
+
}
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
/* ここから追加 */
|
380
|
+
|
381
|
+
.box::after {
|
382
|
+
|
383
|
+
content: ' ';
|
384
|
+
|
385
|
+
clear: both;
|
386
|
+
|
387
|
+
display: block;
|
388
|
+
|
389
|
+
}
|
390
|
+
|
391
|
+
/* ここまで追加 */
|
392
|
+
|
393
|
+
</style>
|
394
|
+
|
395
|
+
</head>
|
396
|
+
|
397
|
+
<body>
|
398
|
+
|
399
|
+
<div class="header">
|
400
|
+
|
401
|
+
<h1>テキスト</h1>
|
402
|
+
|
403
|
+
</div>
|
404
|
+
|
405
|
+
<div class="main">
|
406
|
+
|
407
|
+
<div class="photos">
|
408
|
+
|
409
|
+
<div class="box"><!-- divタグを追加 -->
|
410
|
+
|
411
|
+
<div id="photo01" class="photoframe">
|
412
|
+
|
413
|
+
<p class="photo">
|
414
|
+
|
415
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic.jpg">
|
416
|
+
|
417
|
+
</p>
|
418
|
+
|
419
|
+
<p class="hot">テキスト</p>
|
420
|
+
|
421
|
+
</div>
|
422
|
+
|
423
|
+
<div class="memo">
|
424
|
+
|
425
|
+
<div class="short">
|
426
|
+
|
427
|
+
<p>テキスト</p>
|
428
|
+
|
429
|
+
<p>テキスト</p>
|
430
|
+
|
431
|
+
</div>
|
432
|
+
|
433
|
+
</div>
|
434
|
+
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<table class="days">
|
438
|
+
|
439
|
+
<tr>
|
440
|
+
|
441
|
+
<td>1人</td>
|
442
|
+
|
443
|
+
<td>2人</td>
|
444
|
+
|
445
|
+
<td>3人</td>
|
446
|
+
|
447
|
+
<td>4人</td>
|
448
|
+
|
449
|
+
<td>5人</td>
|
450
|
+
|
451
|
+
<tr>
|
452
|
+
|
453
|
+
<td>
|
454
|
+
|
455
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic1.png">
|
456
|
+
|
457
|
+
</td>
|
458
|
+
|
459
|
+
<td>
|
460
|
+
|
461
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic2.png">
|
462
|
+
|
463
|
+
</td>
|
464
|
+
|
465
|
+
<td>
|
466
|
+
|
467
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic3.png">
|
468
|
+
|
469
|
+
</td>
|
470
|
+
|
471
|
+
<td>
|
472
|
+
|
473
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic4.png">
|
474
|
+
|
475
|
+
</td>
|
476
|
+
|
477
|
+
<td>
|
478
|
+
|
479
|
+
<img src="https://placehold.jp/3d4070/ffffff/150x150.png?text=pic5.png">
|
480
|
+
|
481
|
+
</td>
|
482
|
+
|
483
|
+
</tr>
|
484
|
+
|
485
|
+
</table>
|
486
|
+
|
487
|
+
</div>
|
488
|
+
|
489
|
+
</div>
|
490
|
+
|
491
|
+
</body>
|
492
|
+
|
493
|
+
</html>
|
494
|
+
|
495
|
+
```
|
1
修正
test
CHANGED
@@ -74,9 +74,9 @@
|
|
74
74
|
|
75
75
|
</div>
|
76
76
|
|
77
|
-
<div class=
|
77
|
+
<div class="memo">
|
78
78
|
|
79
|
-
<div class=
|
79
|
+
<div class="short">
|
80
80
|
|
81
81
|
<p></p>
|
82
82
|
|