質問編集履歴
1
HTML全文記載いたしました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,30 +46,642 @@
|
|
46
46
|
|
47
47
|
### 該当のソースコード
|
48
48
|
|
49
|
+
こちらがHTML全文となります↓
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
```<!DOCTYPE html>
|
54
|
+
|
55
|
+
<html lang="ja">
|
56
|
+
|
57
|
+
<head>
|
58
|
+
|
59
|
+
<meta charset="utf-8">
|
60
|
+
|
61
|
+
<title>News</title>
|
62
|
+
|
63
|
+
<meta name="description" content="ブレンドコーヒーとおいしい食材を提供するカフェ">
|
64
|
+
|
65
|
+
<!-- CSS-->
|
66
|
+
|
67
|
+
<link rel="stylesheet" href="https://unpkg.com/ress@3.0.0/dist/ress.min.css"><!-- ress.css-->
|
68
|
+
|
69
|
+
<link rel="stylesheet" href="css/styletairu.css">
|
70
|
+
|
71
|
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
72
|
+
|
73
|
+
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300&display=swap" rel="stylesheet">
|
74
|
+
|
75
|
+
<link rel="icon" type="image/png" href="images/hanabi.png"><!-- ファビコン-->
|
76
|
+
|
77
|
+
<!-- CSS-->
|
78
|
+
|
79
|
+
</head>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<body>
|
84
|
+
|
85
|
+
<div id="tairu" class="big-bg">
|
86
|
+
|
87
|
+
<header class="page-header wrapper">
|
88
|
+
|
89
|
+
<h1><a href="#"><img class="logo" src="images/siro-hanabi.png" alt="花"</a></h1>
|
90
|
+
|
91
|
+
<nav>
|
92
|
+
|
93
|
+
<ul>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<li><a class="botan" href="#">Top</a></li>
|
98
|
+
|
99
|
+
<li><a class="botan" href="#">About</a></li>
|
100
|
+
|
101
|
+
<li><a class="botan" href="#">Menu</a></li>
|
102
|
+
|
103
|
+
<li><a class="botan" href="#">Mail</a></li>
|
104
|
+
|
105
|
+
<li><a class="botan" href="#">Content</a></li>
|
106
|
+
|
107
|
+
<li><a class="button" href="#">exit...</a></li>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
</ul>
|
112
|
+
|
113
|
+
</nav>
|
114
|
+
|
115
|
+
</header>
|
116
|
+
|
117
|
+
<div class="wrpper tairu-content">
|
118
|
+
|
119
|
+
<h2 class="page-title">Photo</h2>
|
120
|
+
|
121
|
+
<p>あああああああ</p>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</div><!-- ここまでがヘッダー -->
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<footer>
|
132
|
+
|
133
|
+
<div class="wrapper">
|
134
|
+
|
135
|
+
<p><small>© 2019 Kinmokusei.</small></p>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</footer>
|
142
|
+
|
143
|
+
</body>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</html>
|
148
|
+
|
149
|
+
```
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
こちらがCSS全文となります↓
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
```@charset "UTF-8";
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
/* 共通部分
|
162
|
+
|
163
|
+
------------------------------- */
|
164
|
+
|
165
|
+
html {
|
166
|
+
|
167
|
+
font-size: 100%;
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
body{
|
174
|
+
|
175
|
+
font-family: sans-serif;
|
176
|
+
|
177
|
+
line-height: 1.7;
|
178
|
+
|
179
|
+
color: rgb(59, 59, 59);
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
a {
|
186
|
+
|
187
|
+
text-decoration: none;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
img {
|
192
|
+
|
193
|
+
max-width: 100%;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
/* ヘッダー------------------------------- */
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
.logo{
|
208
|
+
|
209
|
+
width: 60px;
|
210
|
+
|
211
|
+
margin-left: 5px;
|
212
|
+
|
213
|
+
margin-top: 20px;
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
nav ul{
|
222
|
+
|
223
|
+
display: flex;
|
224
|
+
|
225
|
+
list-style: none;
|
226
|
+
|
227
|
+
margin-top: 30px;
|
228
|
+
|
229
|
+
}
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
nav ul li{
|
234
|
+
|
235
|
+
margin-left: 36px;
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
.button{
|
246
|
+
|
247
|
+
margin-left: 5px;
|
248
|
+
|
249
|
+
background: rgb(79, 106, 129);
|
250
|
+
|
251
|
+
border: 1px solid #fff;
|
252
|
+
|
253
|
+
color: White;
|
254
|
+
|
255
|
+
padding: 8px 30px;
|
256
|
+
|
257
|
+
margin-bottom: 10px;
|
258
|
+
|
259
|
+
border-radius: 100px;
|
260
|
+
|
261
|
+
transition: all 180ms linear;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
.button:hover{
|
268
|
+
|
269
|
+
margin-left: 5px;
|
270
|
+
|
271
|
+
background:#fff;
|
272
|
+
|
273
|
+
border: 1px solid rgb(79, 106, 129);
|
274
|
+
|
275
|
+
color: rgb(79, 106, 129);
|
276
|
+
|
277
|
+
padding: 8px 30px;
|
278
|
+
|
279
|
+
margin-bottom: 10px;
|
280
|
+
|
281
|
+
border-radius: 100px;
|
282
|
+
|
283
|
+
transition: all 180ms linear;
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
.botan{
|
292
|
+
|
293
|
+
font-size: 1rem;
|
294
|
+
|
295
|
+
color: White;
|
296
|
+
|
297
|
+
display: flex;
|
298
|
+
|
49
|
-
|
299
|
+
position: relative;
|
300
|
+
|
50
|
-
|
301
|
+
display: inline-block;
|
302
|
+
|
303
|
+
transition: .3s;
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
.botan::after {
|
310
|
+
|
311
|
+
position: absolute;
|
312
|
+
|
313
|
+
bottom: 0;
|
314
|
+
|
315
|
+
left: 50%;
|
316
|
+
|
317
|
+
content: '';
|
318
|
+
|
319
|
+
width: 0;
|
320
|
+
|
51
|
-
|
321
|
+
height: 2px;
|
322
|
+
|
323
|
+
background-color: rgb(79, 106, 129);
|
324
|
+
|
325
|
+
transition: .3s;
|
326
|
+
|
327
|
+
transform: translateX(-50%);
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
.botan:hover::after{
|
334
|
+
|
335
|
+
width: 100%;
|
336
|
+
|
337
|
+
}
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
.page-header{
|
342
|
+
|
343
|
+
display: flex;
|
344
|
+
|
345
|
+
justify-content: space-between;
|
346
|
+
|
347
|
+
}
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
.wrapper{
|
352
|
+
|
353
|
+
max-width: 1050px;
|
354
|
+
|
355
|
+
margin: 0 auto;
|
356
|
+
|
357
|
+
padding: 0 4%;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
/* 大きな背景画像---------------------------------- */
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
.big-bg{
|
368
|
+
|
369
|
+
background-size: cover;
|
370
|
+
|
371
|
+
background-position: center top;
|
372
|
+
|
373
|
+
background-repeat: no-repeat;
|
374
|
+
|
375
|
+
}
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
#news{
|
380
|
+
|
381
|
+
background-image: url(../images/rain.jpg);
|
382
|
+
|
383
|
+
height: 270px;
|
384
|
+
|
385
|
+
margin-bottom: 40px;
|
386
|
+
|
387
|
+
}
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
#news .page-title{
|
392
|
+
|
393
|
+
text-align: center;
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
}
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
/* 本文の装飾---------------------------------- */
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
.home-content{
|
406
|
+
|
407
|
+
text-align: center;
|
408
|
+
|
409
|
+
margin-top: 5%;
|
410
|
+
|
411
|
+
font-family: sans-serif;
|
412
|
+
|
413
|
+
}
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
.home-content p{
|
418
|
+
|
419
|
+
margin-bottom: 60px;
|
420
|
+
|
421
|
+
}
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
.page-title{
|
426
|
+
|
427
|
+
color: White;
|
428
|
+
|
429
|
+
font-size: 5rem;
|
430
|
+
|
431
|
+
text-align: center;
|
432
|
+
|
433
|
+
font-family: sans-serif;
|
434
|
+
|
435
|
+
letter-spacing: 0.3rem;
|
436
|
+
|
437
|
+
letter-spacing: 0.5rem
|
438
|
+
|
439
|
+
}
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
.bbb{
|
444
|
+
|
445
|
+
font-size: 1em;
|
446
|
+
|
447
|
+
background: #fff;
|
448
|
+
|
449
|
+
color: rgb(231, 181, 54);
|
450
|
+
|
451
|
+
border: 1px solid;
|
452
|
+
|
453
|
+
padding: 15px 32px;
|
454
|
+
|
455
|
+
border-radius: 80px;
|
456
|
+
|
457
|
+
transition: 500ms ease;
|
458
|
+
|
459
|
+
}
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
.bbb:hover{
|
464
|
+
|
465
|
+
font-size: 1em;
|
466
|
+
|
467
|
+
background: rgb(231, 181, 54);
|
468
|
+
|
469
|
+
color: #fff;
|
470
|
+
|
471
|
+
border: 1px solid;
|
472
|
+
|
473
|
+
padding: 15px 32px;
|
474
|
+
|
475
|
+
border-radius: 80px;
|
476
|
+
|
477
|
+
transition: 500ms ease;
|
478
|
+
|
479
|
+
}
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
/* フッター---------------------------------- */
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
footer{
|
490
|
+
|
491
|
+
background: rgb(56, 56, 56);
|
492
|
+
|
493
|
+
text-align: center;
|
494
|
+
|
495
|
+
padding: 12px 0;
|
496
|
+
|
497
|
+
color: White;
|
498
|
+
|
499
|
+
font-size: 0.875rem;
|
500
|
+
|
501
|
+
}
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
/* 記事の部分---------------------------------- */
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
.article{
|
510
|
+
|
511
|
+
width: 70%;
|
512
|
+
|
513
|
+
}
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
.aside{
|
518
|
+
|
519
|
+
width: 22%;
|
520
|
+
|
521
|
+
}
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
.news-content{
|
526
|
+
|
527
|
+
display: flex;
|
528
|
+
|
529
|
+
justify-content: space-between;
|
530
|
+
|
531
|
+
margin-bottom: 50px;
|
532
|
+
|
533
|
+
}
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
.post-info{
|
538
|
+
|
539
|
+
position: relative;
|
540
|
+
|
541
|
+
padding-top: 4px;
|
542
|
+
|
543
|
+
margin-top: 40px;
|
544
|
+
|
545
|
+
}
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
.post-date{
|
550
|
+
|
551
|
+
background: rgb(38, 38, 38);
|
552
|
+
|
553
|
+
color: #fff;
|
554
|
+
|
555
|
+
border-radius: 50%;
|
556
|
+
|
557
|
+
width: 100px;
|
558
|
+
|
559
|
+
height: 100px;
|
560
|
+
|
561
|
+
font-size: 1.625rem;
|
562
|
+
|
563
|
+
text-align: center;
|
564
|
+
|
565
|
+
position: absolute;
|
566
|
+
|
567
|
+
top: 0;
|
568
|
+
|
569
|
+
padding-top: 10px;
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
}
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
.post-date span{
|
580
|
+
|
581
|
+
font-size: 1rem;
|
582
|
+
|
583
|
+
border-top: 1px rgba(255, 255, 255, .5) solid;
|
584
|
+
|
585
|
+
display: block;
|
586
|
+
|
587
|
+
width: 60%;
|
588
|
+
|
589
|
+
margin: 0 auto;
|
590
|
+
|
591
|
+
}
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
.post-title,
|
596
|
+
|
597
|
+
.post-cat{
|
598
|
+
|
599
|
+
margin-left: 120px;
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
}
|
604
|
+
|
605
|
+
.page-title{
|
606
|
+
|
607
|
+
font-family: YuGothic、"游ゴシック体";
|
608
|
+
|
609
|
+
font-size: 6rem;
|
610
|
+
|
611
|
+
}
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
/* tairuの装飾 */
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
#tairu{
|
620
|
+
|
621
|
+
background-image: url(../images/rain.jpg);
|
622
|
+
|
623
|
+
height: 250px;
|
624
|
+
|
625
|
+
margin-bottom: 10px;
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
.tairu-content .page-title {
|
632
|
+
|
633
|
+
text-align: center;
|
634
|
+
|
635
|
+
}
|
636
|
+
|
637
|
+
|
52
638
|
|
53
639
|
p{
|
54
640
|
|
55
|
-
display:none;
|
56
|
-
|
57
641
|
font-size: 9rem;
|
58
642
|
|
59
|
-
|
643
|
+
text-align: center;
|
60
644
|
|
61
645
|
color: #fff;
|
62
646
|
|
63
|
-
|
647
|
+
|
64
|
-
|
648
|
+
|
65
|
-
}
|
649
|
+
}
|
650
|
+
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
66
|
-
|
681
|
+
コード
|
67
|
-
|
68
682
|
|
69
683
|
```
|
70
684
|
|
71
|
-
|
72
|
-
|
73
685
|
### 試したこと
|
74
686
|
|
75
687
|
リセットCSSの再設定、display:none;などの打ち消しできそうなもの
|