質問編集履歴
3
algさんのご指摘を受けて修正しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
レスポンシブ
|
1
|
+
レスポンシブデザインでの画像配置
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
レスポンシブ
|
1
|
+
レスポンシブデザインのサイトを作成中です。
|
2
2
|
|
3
3
|
|
4
4
|
|
2
何度も申し訳ございません。画像URLを差し替えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
<div class="header-logo">
|
42
42
|
|
43
|
-
<a href=""><img src="./images/test/header-logo.png"></a>
|
43
|
+
<a href=""><img src="http://kado-select.com/images/test/header-logo.png"></a>
|
44
44
|
|
45
45
|
<h1>説明文</h1>
|
46
46
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
<div class="header-address pcbl">
|
50
50
|
|
51
|
-
<img src="./images/test/header-miyako.png" alt="ロゴ">
|
51
|
+
<img src="http://kado-select.com/images/test/header-miyako.png" alt="ロゴ">
|
52
52
|
|
53
53
|
<p class="btn-action-01"><a href="mailto:mail@.com">メールでのお問い合わせはこちら</a></p>
|
54
54
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
<div class="header-address spbl">
|
64
64
|
|
65
|
-
<img src="./images/test/header-miyako.png" alt="ロゴ" style="width:6rem;float:left;">
|
65
|
+
<img src="http://kado-select.com/images/test/header-miyako.png" alt="ロゴ" style="width:6rem;float:left;">
|
66
66
|
|
67
67
|
<p class="header-tel-number-txt">0000-00-0000</p>
|
68
68
|
|
1
ご指摘ありがとうございます。コードを追記しました。宜しくお願いいたします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
レスポンシブルデザインのサイトを作成中です。
|
2
2
|
|
3
|
-
URLは[こちら](http://kado-select.com/index0927qst.html)です。
|
4
|
-
|
5
|
-
|
6
|
-
|
7
3
|
|
8
4
|
|
9
5
|
ウィンドウ幅を767px以下にした場合、
|
@@ -32,6 +28,470 @@
|
|
32
28
|
|
33
29
|
|
34
30
|
|
31
|
+
以下にコードを記載します。
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
`````````````````````````````````````````````````````````````````````````````HTML
|
36
|
+
|
37
|
+
<body>
|
38
|
+
|
39
|
+
<header>
|
40
|
+
|
41
|
+
<div class="header-logo">
|
42
|
+
|
43
|
+
<a href=""><img src="./images/test/header-logo.png"></a>
|
44
|
+
|
45
|
+
<h1>説明文</h1>
|
46
|
+
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<div class="header-address pcbl">
|
50
|
+
|
51
|
+
<img src="./images/test/header-miyako.png" alt="ロゴ">
|
52
|
+
|
53
|
+
<p class="btn-action-01"><a href="mailto:mail@.com">メールでのお問い合わせはこちら</a></p>
|
54
|
+
|
55
|
+
<p class="header-tel-contact-txt">お電話でのお問い合わせはこちら</p>
|
56
|
+
|
57
|
+
<p class="header-hours-txt">[営業時間]<br class="pcin">月〜金9:00〜17:00</p>
|
58
|
+
|
59
|
+
<p class=" header-tel-number-txt">0000-00-0000</p>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<div class="header-address spbl">
|
64
|
+
|
65
|
+
<img src="./images/test/header-miyako.png" alt="ロゴ" style="width:6rem;float:left;">
|
66
|
+
|
67
|
+
<p class="header-tel-number-txt">0000-00-0000</p>
|
68
|
+
|
69
|
+
<p class="header-hours-txt">[営業時間]月〜金9:00〜17:00</p>
|
70
|
+
|
71
|
+
<p class="btn-action-01"><a href="mailto:mail@.com">メールでのお問い合わせ</a></p>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
</header>
|
76
|
+
|
77
|
+
</body>
|
78
|
+
|
79
|
+
`````````````````````````````````````````````````````````````````````````````
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
`````````````````````````````````````````````````````````````````````````````CSS
|
86
|
+
|
87
|
+
html, body, div, h1, p, img, header{
|
88
|
+
|
89
|
+
margin: 0;
|
90
|
+
|
91
|
+
padding: 0;
|
92
|
+
|
93
|
+
border: 0;
|
94
|
+
|
95
|
+
font-size: 100%;
|
96
|
+
|
97
|
+
vertical-align: baseline;
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
body {
|
102
|
+
|
103
|
+
line-height: 1;
|
104
|
+
|
105
|
+
font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "游ゴシック", YuGothic, sans-serif;
|
106
|
+
|
107
|
+
width: 100%;
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
*,
|
112
|
+
|
113
|
+
*:after {
|
114
|
+
|
115
|
+
-webkit-box-sizing: border-box;
|
116
|
+
|
117
|
+
-moz-box-sizing: border-box;
|
118
|
+
|
119
|
+
box-sizing: border-box;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
img {
|
124
|
+
|
125
|
+
display: inline-block;
|
126
|
+
|
127
|
+
vertical-align: middle;
|
128
|
+
|
129
|
+
max-width: 100%;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
html{
|
134
|
+
|
135
|
+
font-size: 16px;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
.warapper{
|
140
|
+
|
141
|
+
width:100%;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
header{
|
146
|
+
|
147
|
+
width: 1000px;
|
148
|
+
|
149
|
+
margin: 10px auto 20px;
|
150
|
+
|
151
|
+
display: flex;
|
152
|
+
|
153
|
+
justify-content:space-between;
|
154
|
+
|
155
|
+
align-items: center;
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
.header-logo{
|
160
|
+
|
161
|
+
display: flex;
|
162
|
+
|
163
|
+
justify-content:space-between;
|
164
|
+
|
165
|
+
align-items: center;
|
166
|
+
|
167
|
+
margin-left: 1rem;
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
header h1{
|
172
|
+
|
173
|
+
margin-left: 35px;
|
174
|
+
|
175
|
+
font-weight: normal;
|
176
|
+
|
177
|
+
font-size: 0.8rem;
|
178
|
+
|
179
|
+
line-height: 1.5;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
.header-address{
|
184
|
+
|
185
|
+
width: 490px;
|
186
|
+
|
187
|
+
text-align: right;
|
188
|
+
|
189
|
+
position: relative;
|
190
|
+
|
191
|
+
margin-top: -5px;
|
192
|
+
|
193
|
+
display: inline-block;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
.pcbl img{
|
198
|
+
|
199
|
+
float:left;
|
200
|
+
|
201
|
+
clear:both;
|
202
|
+
|
203
|
+
margin-left: 5rem;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
.pcbl{
|
208
|
+
|
209
|
+
display: block !important;
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
.pcin{
|
214
|
+
|
215
|
+
display: inline !important;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
.spbl{
|
220
|
+
|
221
|
+
display: none !important;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
.btn-action-01{
|
228
|
+
|
229
|
+
display: inline-block;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
.btn-action-01 a {
|
234
|
+
|
235
|
+
background: #a48831 none repeat scroll 0 0;
|
236
|
+
|
237
|
+
color: #fff;
|
238
|
+
|
239
|
+
display: block;
|
240
|
+
|
241
|
+
text-align: center;
|
242
|
+
|
243
|
+
text-decoration: none;
|
244
|
+
|
245
|
+
border-radius: 5px;
|
246
|
+
|
247
|
+
padding:5px 30px 5px 20px;
|
248
|
+
|
249
|
+
font-size: 0.9rem;
|
250
|
+
|
251
|
+
position: relative;
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
.btn-action-01 a::after {
|
256
|
+
|
257
|
+
-moz-border-bottom-colors: none;
|
258
|
+
|
259
|
+
-moz-border-left-colors: none;
|
260
|
+
|
261
|
+
-moz-border-right-colors: none;
|
262
|
+
|
263
|
+
-moz-border-top-colors: none;
|
264
|
+
|
265
|
+
border-color: transparent transparent transparent #fff;
|
266
|
+
|
267
|
+
border-image: none;
|
268
|
+
|
269
|
+
border-style: solid;
|
270
|
+
|
271
|
+
border-width: 5px;
|
272
|
+
|
273
|
+
content: "";
|
274
|
+
|
275
|
+
display: block;
|
276
|
+
|
277
|
+
right: 15px;
|
278
|
+
|
279
|
+
margin-top: -5px;
|
280
|
+
|
281
|
+
top: 50%;
|
282
|
+
|
283
|
+
width: 0;
|
284
|
+
|
285
|
+
position: absolute;
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
.header-tel-contact-txt{
|
290
|
+
|
291
|
+
font-size: 0.9rem;
|
292
|
+
|
293
|
+
margin-top: 0.5rem;
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
.header-hours-txt{
|
298
|
+
|
299
|
+
text-align: left;
|
300
|
+
|
301
|
+
font-size: 0.875rem;
|
302
|
+
|
303
|
+
line-height: 1rem;
|
304
|
+
|
305
|
+
display: inline-block;
|
306
|
+
|
307
|
+
margin-right: 10px;
|
308
|
+
|
309
|
+
}
|
310
|
+
|
311
|
+
.header-tel-number-txt{
|
312
|
+
|
313
|
+
font-size: 1.5rem;
|
314
|
+
|
315
|
+
font-weight: bold;
|
316
|
+
|
317
|
+
color: #a48831;
|
318
|
+
|
319
|
+
display: inline-block;
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
@media only screen and (max-width: 767px) {
|
326
|
+
|
327
|
+
html{
|
328
|
+
|
329
|
+
font-size: 13px;
|
330
|
+
|
331
|
+
}
|
332
|
+
|
333
|
+
header{
|
334
|
+
|
335
|
+
width: 100%;
|
336
|
+
|
337
|
+
padding-left: 5%;
|
338
|
+
|
339
|
+
padding-right: 5%;
|
340
|
+
|
341
|
+
margin-bottom: 1rem;
|
342
|
+
|
343
|
+
}
|
344
|
+
|
345
|
+
header h1 {
|
346
|
+
|
347
|
+
display: none;
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
.header-address{
|
352
|
+
|
353
|
+
position: static;
|
354
|
+
|
355
|
+
text-align: right;
|
356
|
+
|
357
|
+
max-width: 70%;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
.header-logo{
|
362
|
+
|
363
|
+
margin-left: 0.5rem;
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
.header-logo img{
|
368
|
+
|
369
|
+
width: 3rem;
|
370
|
+
|
371
|
+
}
|
372
|
+
|
373
|
+
.header-hours-txt{
|
374
|
+
|
375
|
+
text-align: right;
|
376
|
+
|
377
|
+
font-size: 0.7rem;
|
378
|
+
|
379
|
+
margin-bottom: 0.5rem;
|
380
|
+
|
381
|
+
display: block;
|
382
|
+
|
383
|
+
}
|
384
|
+
|
385
|
+
.header-tel-number-txt{
|
386
|
+
|
387
|
+
position: static;
|
388
|
+
|
389
|
+
margin-bottom: 0.5rem;
|
390
|
+
|
391
|
+
font-size: 1.2rem;
|
392
|
+
|
393
|
+
margin-top: 1rem;
|
394
|
+
|
395
|
+
display: block;
|
396
|
+
|
397
|
+
}
|
398
|
+
|
399
|
+
.header-tel-number-txt a{
|
400
|
+
|
401
|
+
text-decoration: none;
|
402
|
+
|
403
|
+
color: #a48831;
|
404
|
+
|
405
|
+
}
|
406
|
+
|
407
|
+
.pcbl{
|
408
|
+
|
409
|
+
display: none !important;
|
410
|
+
|
411
|
+
}
|
412
|
+
|
413
|
+
.pcin{
|
414
|
+
|
415
|
+
display: none !important;
|
416
|
+
|
417
|
+
}
|
418
|
+
|
419
|
+
.spbl{
|
420
|
+
|
421
|
+
display: block !important;
|
422
|
+
|
423
|
+
white-space: nowrap;
|
424
|
+
|
425
|
+
}
|
426
|
+
|
427
|
+
/* --- ボタン-- */
|
428
|
+
|
429
|
+
.btn-action-01 a{
|
430
|
+
|
431
|
+
border-radius: 0;
|
432
|
+
|
433
|
+
background-color: #fff;
|
434
|
+
|
435
|
+
border: 2px solid #a48831;
|
436
|
+
|
437
|
+
color: #a48831;
|
438
|
+
|
439
|
+
padding: 0.2rem 0.5rem;
|
440
|
+
|
441
|
+
padding-right: 1rem;
|
442
|
+
|
443
|
+
font-weight: 600;
|
444
|
+
|
445
|
+
}
|
446
|
+
|
447
|
+
.btn-action-01 a::after {
|
448
|
+
|
449
|
+
-moz-border-bottom-colors: none;
|
450
|
+
|
451
|
+
-moz-border-left-colors: none;
|
452
|
+
|
453
|
+
-moz-border-right-colors: none;
|
454
|
+
|
455
|
+
-moz-border-top-colors: none;
|
456
|
+
|
457
|
+
border-color: transparent transparent transparent #a48831;
|
458
|
+
|
459
|
+
border-image: none;
|
460
|
+
|
461
|
+
border-style: solid;
|
462
|
+
|
463
|
+
border-width: 5px;
|
464
|
+
|
465
|
+
content: "";
|
466
|
+
|
467
|
+
display: block;
|
468
|
+
|
469
|
+
right: 0;
|
470
|
+
|
471
|
+
margin-top: -5px;
|
472
|
+
|
473
|
+
top: 50%;
|
474
|
+
|
475
|
+
width: 0;position: absolute;
|
476
|
+
|
477
|
+
}
|
478
|
+
|
479
|
+
}
|
480
|
+
|
481
|
+
@media only screen and (max-width: 320px) {
|
482
|
+
|
483
|
+
html{
|
484
|
+
|
485
|
+
font-size: 11px;
|
486
|
+
|
487
|
+
}
|
488
|
+
|
489
|
+
}
|
490
|
+
|
491
|
+
````````````````````````````````````````````````````````````````````````````
|
492
|
+
|
493
|
+
|
494
|
+
|
35
495
|
大変お手数ですが、解決方法をご教示ください。
|
36
496
|
|
37
497
|
宜しくお願いいたします。
|