質問編集履歴
6
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
webサイトのレスポンシブ化をしたら要素が画面からはみ出した。
|
test
CHANGED
@@ -44,13 +44,9 @@
|
|
44
44
|
|
45
45
|
長すぎてここには載せられないので
|
46
46
|
|
47
|
-
|
47
|
+
[リンク内容](http://plsk.net/questionOfAyatch)
|
48
48
|
|
49
|
-
|
49
|
+
に乗せときます。
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
50
|
|
55
51
|
### 試したこと
|
56
52
|
|
5
修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
webサイトのレスポンシブ化をしたら要素が画面からはみ出した。
|
1
|
+
sywebサイトのレスポンシブ化をしたら要素が画面からはみ出した。
|
test
CHANGED
@@ -44,9 +44,11 @@
|
|
44
44
|
|
45
45
|
長すぎてここには載せられないので
|
46
46
|
|
47
|
+
```
|
48
|
+
|
47
49
|
http://plsk.net/questionOfAyatch
|
48
50
|
|
49
|
-
|
51
|
+
|
50
52
|
|
51
53
|
|
52
54
|
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,339 +42,9 @@
|
|
42
42
|
|
43
43
|
```
|
44
44
|
|
45
|
-
|
45
|
+
長すぎてここには載せられないので
|
46
46
|
|
47
|
-
<!DOCTYPE html>
|
48
|
-
|
49
|
-
<html lang="ja">
|
50
|
-
|
51
|
-
<head>
|
52
|
-
|
53
|
-
<meta charset="UTF-8">
|
54
|
-
|
55
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
56
|
-
|
57
|
-
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
|
58
|
-
|
59
|
-
<link rel="stylesheet" href="css/common.css">
|
60
|
-
|
61
|
-
<link rel="stylesheet" href="css/stylesheet.css">
|
62
|
-
|
63
|
-
<link rel="stylesheet" href="css/res.css">
|
64
|
-
|
65
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
66
|
-
|
67
|
-
|
47
|
+
http://plsk.net/questionOfAyatch
|
68
|
-
|
69
|
-
</head>
|
70
|
-
|
71
|
-
<body>
|
72
|
-
|
73
|
-
<header>
|
74
|
-
|
75
|
-
<div class="container">
|
76
|
-
|
77
|
-
<img class="header-logo" src="https://isara.life/wp-content/themes/isara_v2/img/isaralogo.png" alt="iSARA">
|
78
|
-
|
79
|
-
<p class="logo-desc">バンコクのノマドエンジニア育成講座</p>
|
80
|
-
|
81
|
-
<div class="space"></div>
|
82
|
-
|
83
|
-
<a href="#" class="header-form"><p>お問い合わせ / 資料請求はこちら</p></a>
|
84
|
-
|
85
|
-
<a href="#" class="header-form-res"><img src="https://isara.life/wp-content/themes/isara_v2/img/form.png" alt=""></a>
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</header>
|
90
|
-
|
91
|
-
</body>
|
92
|
-
|
93
|
-
</html>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
stylesheet.css
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
/* User agent stylesheet reset */
|
102
|
-
|
103
|
-
html, body, div, span, object, iframe,
|
104
|
-
|
105
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
106
|
-
|
107
|
-
abbr, address, cite, code,
|
108
|
-
|
109
|
-
del, dfn, em, img, ins, kbd, q, samp,
|
110
|
-
|
111
|
-
small, strong, sub, sup, var,
|
112
|
-
|
113
|
-
b, i,
|
114
|
-
|
115
|
-
dl, dt, dd, ol, ul, li,
|
116
|
-
|
117
|
-
fieldset, form, label, legend,
|
118
|
-
|
119
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
120
|
-
|
121
|
-
article, aside, canvas, details, figcaption, figure,
|
122
|
-
|
123
|
-
footer, header, hgroup, menu, nav, section, summary,
|
124
|
-
|
125
|
-
time, mark, audio, video {
|
126
|
-
|
127
|
-
margin: 0;
|
128
|
-
|
129
|
-
padding: 0;
|
130
|
-
|
131
|
-
border: 0;
|
132
|
-
|
133
|
-
font-size: 100%;
|
134
|
-
|
135
|
-
vertical-align: baseline;
|
136
|
-
|
137
|
-
background: transparent;
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
.header-form-res,{
|
144
|
-
|
145
|
-
display: none;
|
146
|
-
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
ul{
|
152
|
-
|
153
|
-
list-style: none;
|
154
|
-
|
155
|
-
}
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
body{
|
160
|
-
|
161
|
-
letter-spacing: 1.5px;
|
162
|
-
|
163
|
-
line-height: 1.6;
|
164
|
-
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
header{
|
170
|
-
|
171
|
-
width: 100%;
|
172
|
-
|
173
|
-
height: 75px;
|
174
|
-
|
175
|
-
position: fixed;
|
176
|
-
|
177
|
-
top:0;
|
178
|
-
|
179
|
-
left:0;
|
180
|
-
|
181
|
-
z-index: 100;
|
182
|
-
|
183
|
-
background:white;
|
184
|
-
|
185
|
-
opacity:0.9;
|
186
|
-
|
187
|
-
}
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
.container{
|
192
|
-
|
193
|
-
width: 1170px;
|
194
|
-
|
195
|
-
height: 100%;
|
196
|
-
|
197
|
-
margin: 0 auto;
|
198
|
-
|
199
|
-
display: flex;
|
200
|
-
|
201
|
-
align-items: center;
|
202
|
-
|
203
|
-
}
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
.header-logo{
|
208
|
-
|
209
|
-
width: 128px;
|
210
|
-
|
211
|
-
}
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
.logo-desc{
|
216
|
-
|
217
|
-
align-self: flex-end;
|
218
|
-
|
219
|
-
font-size: 90%;
|
220
|
-
|
221
|
-
font-weight: bold;
|
222
|
-
|
223
|
-
}
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
.space{
|
228
|
-
|
229
|
-
flex: 1;
|
230
|
-
|
231
|
-
align-self: stretch;
|
232
|
-
|
233
|
-
}
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
.header-form{
|
238
|
-
|
239
|
-
align-self: center;
|
240
|
-
|
241
|
-
padding: 12px 30px;
|
242
|
-
|
243
|
-
font-size: 90%;
|
244
|
-
|
245
|
-
color: white;
|
246
|
-
|
247
|
-
background: rgb(215, 0, 0);
|
248
|
-
|
249
|
-
text-decoration: none;
|
250
|
-
|
251
|
-
border-radius: 40px;
|
252
|
-
|
253
|
-
}
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
res.css
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
@media screen and (max-width: 500px){
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
*{
|
268
|
-
|
269
|
-
max-width: 100%;
|
270
|
-
|
271
|
-
}
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
:root{
|
276
|
-
|
277
|
-
max-width: 100%;
|
278
|
-
|
279
|
-
}
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
body{
|
284
|
-
|
285
|
-
font-size: 14px;
|
286
|
-
|
287
|
-
}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
header{
|
292
|
-
|
293
|
-
width: 100%;
|
294
|
-
|
295
|
-
font-size: 10px;
|
296
|
-
|
297
|
-
}
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
.container{
|
302
|
-
|
303
|
-
width: 98%;
|
304
|
-
|
305
|
-
margin: 0 auto;
|
306
|
-
|
307
|
-
position: relative;
|
308
|
-
|
309
|
-
}
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
img{
|
314
|
-
|
315
|
-
max-width: 100%;
|
316
|
-
|
317
|
-
}
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
.header-form{
|
322
|
-
|
323
|
-
display: none;
|
324
|
-
|
325
|
-
}
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
.header-form-res{
|
330
|
-
|
331
|
-
display: inline;
|
332
|
-
|
333
|
-
background: red;
|
334
|
-
|
335
|
-
z-index: 1000;
|
336
|
-
|
337
|
-
}
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
.header-logo{
|
342
|
-
|
343
|
-
position: absolute;
|
344
|
-
|
345
|
-
left: 0;
|
346
|
-
|
347
|
-
}
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
.logo-desc{
|
352
|
-
|
353
|
-
align-self: flex-start;
|
354
|
-
|
355
|
-
order: -1;
|
356
|
-
|
357
|
-
}
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
.space{
|
362
|
-
|
363
|
-
align-self: center;
|
364
|
-
|
365
|
-
}
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
48
|
|
379
49
|
```
|
380
50
|
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -393,3 +393,9 @@
|
|
393
393
|
|
394
394
|
|
395
395
|
なぜはみ出してしまうのかその原理を教えてください。また、解決策を教えてくれると助かります。
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
###追記
|
400
|
+
|
401
|
+
containerを削除してもheaderの大きさはbodyをはみ出た状態(Google Developer tool より)なのでcontainerは関係ありません。(と思います)
|
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -300,11 +300,11 @@
|
|
300
300
|
|
301
301
|
.container{
|
302
302
|
|
303
|
-
|
303
|
+
width: 98%;
|
304
304
|
|
305
305
|
margin: 0 auto;
|
306
306
|
|
307
|
-
position: relative;
|
307
|
+
position: relative;
|
308
308
|
|
309
309
|
}
|
310
310
|
|
1
個人情報保護
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,13 +26,13 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
|
+
|
30
|
+
|
29
|
-
![イメージ説明](
|
31
|
+
![イメージ説明](1869f42184175e7bfd1c755504162fe3.png)
|
30
|
-
|
31
|
-
|
32
|
-
|
32
|
+
|
33
|
+
|
34
|
+
|
33
|
-
![イメージ説明](
|
35
|
+
![イメージ説明](c53a0cec5563729591191a9d8866c7f2.png)
|
34
|
-
|
35
|
-
|
36
36
|
|
37
37
|
|
38
38
|
|