質問編集履歴
1
コードを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,3 +15,361 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
何か解決策はないでしょうか。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
練習用ですがコードを追記しました。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```HTML
|
26
|
+
|
27
|
+
<DOCTYPE html>
|
28
|
+
|
29
|
+
<html lang="ja">
|
30
|
+
|
31
|
+
<head>
|
32
|
+
|
33
|
+
<meta charset="UTF-8">
|
34
|
+
|
35
|
+
<title>練習</title>
|
36
|
+
|
37
|
+
<link rel="stylesheet" href="css/reset.css">
|
38
|
+
|
39
|
+
<link rel="stylesheet" href="css/slicknav.min.css">
|
40
|
+
|
41
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.4/css/all.css">
|
42
|
+
|
43
|
+
<link rel="stylesheet" href="css/style.css">
|
44
|
+
|
45
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
46
|
+
|
47
|
+
</head>
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
<body>
|
52
|
+
|
53
|
+
<header>
|
54
|
+
|
55
|
+
<a href="index.html"><img src="images/headertest.jpg"></a>
|
56
|
+
|
57
|
+
</header>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<nav>
|
62
|
+
|
63
|
+
<ul id="menu">
|
64
|
+
|
65
|
+
<li><a href="index.html">Top</a></li>
|
66
|
+
|
67
|
+
<li><a href="#">Introduction</a></li>
|
68
|
+
|
69
|
+
<li><a href="#">Menu</a></li>
|
70
|
+
|
71
|
+
<li><a href="#">Contact</a></li>
|
72
|
+
|
73
|
+
</ul>
|
74
|
+
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<article>
|
80
|
+
|
81
|
+
<h1>ああああ</h1>
|
82
|
+
|
83
|
+
</article>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<aside>
|
88
|
+
|
89
|
+
<h1>いいいい</h1>
|
90
|
+
|
91
|
+
<img src="images/headertest.jpg">
|
92
|
+
|
93
|
+
<img src="images/bannertext.jpg">
|
94
|
+
|
95
|
+
</aside>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<footer>
|
100
|
+
|
101
|
+
<p>うううう</p>
|
102
|
+
|
103
|
+
</footer>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<script src="js/jquery-3.4.1.min.js"></script>
|
108
|
+
|
109
|
+
<script src="js/jquery.slicknav.min.js"></script>
|
110
|
+
|
111
|
+
<script src="js/script.js"></script>
|
112
|
+
|
113
|
+
</body>
|
114
|
+
|
115
|
+
</html>
|
116
|
+
|
117
|
+
</DOCTYPE>
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```CSS
|
124
|
+
|
125
|
+
@charset "utf-8";
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
body {
|
130
|
+
|
131
|
+
background-color: white;
|
132
|
+
|
133
|
+
width: 960px;
|
134
|
+
|
135
|
+
margin: 0 auto 0 auto;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
/* ヘッダー */
|
142
|
+
|
143
|
+
header {
|
144
|
+
|
145
|
+
width: 960px;
|
146
|
+
|
147
|
+
background-color: antiquewhite;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
header img {
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
@media screen and (max-width: 750px) {
|
156
|
+
|
157
|
+
header img {
|
158
|
+
|
159
|
+
width: 0;
|
160
|
+
|
161
|
+
height: 0;
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
/* ナビゲーションエリアの設定 */
|
170
|
+
|
171
|
+
nav {
|
172
|
+
|
173
|
+
text-align: center;
|
174
|
+
|
175
|
+
width: 960px;
|
176
|
+
|
177
|
+
background-color: azure;
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
nav ul li {
|
182
|
+
|
183
|
+
list-style: none;
|
184
|
+
|
185
|
+
display: inline-block;
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
nav ul li a {
|
190
|
+
|
191
|
+
text-align: center;
|
192
|
+
|
193
|
+
text-decoration: none;
|
194
|
+
|
195
|
+
width: 130px;
|
196
|
+
|
197
|
+
line-height: 70px;
|
198
|
+
|
199
|
+
overflow: hidden;
|
200
|
+
|
201
|
+
font-size: 24px;
|
202
|
+
|
203
|
+
font-weight:bold;
|
204
|
+
|
205
|
+
color: black;
|
206
|
+
|
207
|
+
background-color: aqua;
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
#menu {
|
212
|
+
|
213
|
+
display: none;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
nav ul li a:hover {
|
218
|
+
|
219
|
+
background-color: black;
|
220
|
+
|
221
|
+
color: white;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
@media screen and (min-width: 750px) {
|
228
|
+
|
229
|
+
#menu {
|
230
|
+
|
231
|
+
display: block;
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
.slicknav_menu {
|
236
|
+
|
237
|
+
display: none;
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
.slicknav_menu:before {
|
244
|
+
|
245
|
+
width: 180px;
|
246
|
+
|
247
|
+
height: 50px;
|
248
|
+
|
249
|
+
float: left;
|
250
|
+
|
251
|
+
background-image: ;
|
252
|
+
|
253
|
+
background-repeat: no-repeat;
|
254
|
+
|
255
|
+
background-position: center left;
|
256
|
+
|
257
|
+
background-size: 100%;
|
258
|
+
|
259
|
+
content: "";
|
260
|
+
|
261
|
+
margin: 0 0 0 19px;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
.slicknav_menu {
|
266
|
+
|
267
|
+
width: 100%;
|
268
|
+
|
269
|
+
position:absolute;
|
270
|
+
|
271
|
+
top: 0;
|
272
|
+
|
273
|
+
width: 100%;
|
274
|
+
|
275
|
+
z-index: 10000;
|
276
|
+
|
277
|
+
background-color: #280000;
|
278
|
+
|
279
|
+
}
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
/* 本文 */
|
284
|
+
|
285
|
+
article {
|
286
|
+
|
287
|
+
width: 760px;
|
288
|
+
|
289
|
+
background-color: beige;
|
290
|
+
|
291
|
+
padding: 0 0 1000px 0;
|
292
|
+
|
293
|
+
float: left;
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
article h1 {
|
298
|
+
|
299
|
+
font-size: 100px;
|
300
|
+
|
301
|
+
}
|
302
|
+
|
303
|
+
@media screen and (max-width: 750px) {
|
304
|
+
|
305
|
+
article {
|
306
|
+
|
307
|
+
width: 100%;
|
308
|
+
|
309
|
+
margin: 60px 0 0 0;
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
/* aside */
|
318
|
+
|
319
|
+
aside {
|
320
|
+
|
321
|
+
width: 200px;
|
322
|
+
|
323
|
+
background-color: blanchedalmond;
|
324
|
+
|
325
|
+
margin: 0;
|
326
|
+
|
327
|
+
float: right;
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
aside img {
|
332
|
+
|
333
|
+
display: inline-block;
|
334
|
+
|
335
|
+
width: 200px;
|
336
|
+
|
337
|
+
}
|
338
|
+
|
339
|
+
@media screen and (max-width: 750px) {
|
340
|
+
|
341
|
+
aside {
|
342
|
+
|
343
|
+
width: 100%;
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
aside img {
|
348
|
+
|
349
|
+
width: 27%;
|
350
|
+
|
351
|
+
}
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
/* footer */
|
356
|
+
|
357
|
+
footer {
|
358
|
+
|
359
|
+
clear: both;
|
360
|
+
|
361
|
+
width: 960px;
|
362
|
+
|
363
|
+
background-color: chartreuse;
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
footer p {
|
368
|
+
|
369
|
+
font-size: 30px;
|
370
|
+
|
371
|
+
}
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
```
|