質問編集履歴
1
ソース
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
### 前提・実現したいこと
|
1
|
+
```### 前提・実現したいこと
|
2
2
|
|
3
3
|
htmlで画像を貼り付け、サイズを指定したいです。
|
4
4
|
|
@@ -41,3 +41,639 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
皆さんがどうやって写真を入れているか流れも教えていただけたら嬉しいです。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
エラーメッセージ
|
48
|
+
|
49
|
+
<!DOCTYPE html>
|
50
|
+
|
51
|
+
<html lang="ja">
|
52
|
+
|
53
|
+
<head>
|
54
|
+
|
55
|
+
<meta charset="UTF-8">
|
56
|
+
|
57
|
+
<title>◯◯不動産</title>
|
58
|
+
|
59
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
60
|
+
|
61
|
+
<meta name="description" content="◯◯不動産のページです。">
|
62
|
+
|
63
|
+
<meta http-equiv="X-UA-Compative" content="IE=edge">
|
64
|
+
|
65
|
+
<meta name="robots" content="noindex, follow">
|
66
|
+
|
67
|
+
<link rel="stylesheet" href="index1.css">
|
68
|
+
|
69
|
+
</head>
|
70
|
+
|
71
|
+
<body>
|
72
|
+
|
73
|
+
<!--header-->
|
74
|
+
|
75
|
+
<header class="header">
|
76
|
+
|
77
|
+
<h1 class="header-logo">
|
78
|
+
|
79
|
+
<a href="#">
|
80
|
+
|
81
|
+
<img src="logo.png" alt="◯○不動産" class=logo>
|
82
|
+
|
83
|
+
</a>
|
84
|
+
|
85
|
+
</h1>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<nav class="header-nav">
|
90
|
+
|
91
|
+
<ul class="header-nav-list">
|
92
|
+
|
93
|
+
<li class="header-nav-item"><a href="#">ホーム</a></li>
|
94
|
+
|
95
|
+
<li class="header-nav-item"><a href="#">特徴</a></li>
|
96
|
+
|
97
|
+
<li class="header-nav-item"><a href="#">サービス</a></li>
|
98
|
+
|
99
|
+
<li class="header-nav-item"><a href="#">ニュース</a></li>
|
100
|
+
|
101
|
+
<li class="header-nav-item"><a href="#">ブログ</a></li>
|
102
|
+
|
103
|
+
<li class="header-nav-item"><a href="#">会社概要</a></li>
|
104
|
+
|
105
|
+
<li class="header-nav-item"><a href="#">採用情報</a></li>
|
106
|
+
|
107
|
+
<li class="header-nav-item"><a href="#">お問い合わせ</a></li>
|
108
|
+
|
109
|
+
</ul>
|
110
|
+
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
</header>
|
114
|
+
|
115
|
+
<!--header end-->
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!--top-kv-->
|
120
|
+
|
121
|
+
<div class="top-kv">
|
122
|
+
|
123
|
+
<div>
|
124
|
+
|
125
|
+
<div class="u-wrap">
|
126
|
+
|
127
|
+
<p class="top-kv-main-copy">お客様の家探しを手伝います!</p>
|
128
|
+
|
129
|
+
<p class="top-kv-sub-copy">治安はどう?家賃は?最寄りまで何分?などのご質問を全てお答えします!</p>
|
130
|
+
|
131
|
+
<a href="#" class="top-kv-btn m-btn m-btn-cta">ご依頼・ご相談</a>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<!--top-kv end-->
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<main>
|
144
|
+
|
145
|
+
<!--top-feature-->
|
146
|
+
|
147
|
+
<div class="top-feature u-ptb-m">
|
148
|
+
|
149
|
+
<div class="u-wrap">
|
150
|
+
|
151
|
+
<p class="top-feature-copy">私たちにお任せを!</p>
|
152
|
+
|
153
|
+
<p class="top-feature-txt">私たちはお客様に寄り添い、家探しから引越し後もサポートいたします。<br>
|
154
|
+
|
155
|
+
お客様に快適な家を、スムーズな引越しをご提供、ご提案させていただきます。</p>
|
156
|
+
|
157
|
+
<a href="#" class="top-feature-btn m-btn m-btn-secondary">私たちの特徴を見る</a>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<!--top-feature end-->
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<!--top-service-->
|
168
|
+
|
169
|
+
<section class="top-service u-wrap u-ptb-m">
|
170
|
+
|
171
|
+
<h2 class="top-service-ttl m-ttl">サービス</h2>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<div class="top-service-list">
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<section class="top-service-item">
|
180
|
+
|
181
|
+
<div class="top-service-itm-img">
|
182
|
+
|
183
|
+
<img src="photo_money1.jpg" alt="お金" class=photo>
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
<h3 class="top-service-item-ttl">お金</h3>
|
188
|
+
|
189
|
+
<p class="top-servise-item-description">ご予算に応じた物件をご紹介します。敷金・礼金・管理費など家賃以外のことも詳しくお話しさせていただきます。</p>
|
190
|
+
|
191
|
+
</section>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<section class="top-service-item">
|
196
|
+
|
197
|
+
<div class="top-service-itm-img">
|
198
|
+
|
199
|
+
<img src="photo_money2.jpg" alt="サービス2のタイトル" class=photo>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<h3 class="top-service-item-ttl">サービス2のタイトル</h3>
|
204
|
+
|
205
|
+
<p class="top-servise-item-description">サービス2の説明。</p>
|
206
|
+
|
207
|
+
</section>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<section class="top-service-item">
|
212
|
+
|
213
|
+
<div class="top-service-itm-img">
|
214
|
+
|
215
|
+
<img src="photo_map1.jpg" alt="サービス3のタイトル" class=photo>
|
216
|
+
|
217
|
+
</div>
|
218
|
+
|
219
|
+
<h3 class="top-service-item-ttl">サービス3のタイトル</h3>
|
220
|
+
|
221
|
+
<p class="top-servise-item-description">サービス3の説明。</p>
|
222
|
+
|
223
|
+
</section>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
<section class="top-service-item">
|
228
|
+
|
229
|
+
<div class="top-service-itm-img">
|
230
|
+
|
231
|
+
<img src="photo_map2.jpg" alt="サービス4のタイトル" class=photo>
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<h3 class="top-service-item-ttl">サービス4のタイトル</h3>
|
236
|
+
|
237
|
+
<p class="top-servise-item-description">サービス4の説明。</p>
|
238
|
+
|
239
|
+
</section>
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<a href="#" class="top-service-btn m-btn m-btn-primary">サービスを見る</a>
|
244
|
+
|
245
|
+
</section>
|
246
|
+
|
247
|
+
<!--top-service end-->
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
### 発生している問題・エラーメッセージ
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
```
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
### 該当のソースコード
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
```ここに言語名を入力
|
272
|
+
|
273
|
+
ソースコード@charset "UTF-8";
|
274
|
+
|
275
|
+
/* base */
|
276
|
+
|
277
|
+
/* --------------------------------- */
|
278
|
+
|
279
|
+
html{
|
280
|
+
|
281
|
+
color: #000;
|
282
|
+
|
283
|
+
background: #fff;
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,
|
288
|
+
|
289
|
+
pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{
|
290
|
+
|
291
|
+
margin:0;padding:0}
|
292
|
+
|
293
|
+
table{border-collapse:collapse;border-spacing:0}
|
294
|
+
|
295
|
+
fieldset,img{border:0}
|
296
|
+
|
297
|
+
address,caption,cite,code,dfn,em,strong,th,var{
|
298
|
+
|
299
|
+
font-style:normal;font-weight:normal}
|
300
|
+
|
301
|
+
ol,ul{list-style:none}
|
302
|
+
|
303
|
+
caption,th{text-align:left}
|
304
|
+
|
305
|
+
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
|
306
|
+
|
307
|
+
q:before,q:after{content:''}
|
308
|
+
|
309
|
+
abbr,acronym{border:0;font-variant:normal}
|
310
|
+
|
311
|
+
sup{vertical-align:text-top}
|
312
|
+
|
313
|
+
sub{vertical-align:text-bottom}
|
314
|
+
|
315
|
+
input,textarea,select{
|
316
|
+
|
317
|
+
font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%}
|
318
|
+
|
319
|
+
legend{color:#000}
|
320
|
+
|
321
|
+
#yui3-css-stamp.cssreset{display:none}
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
*{
|
326
|
+
|
327
|
+
-webkit-font-smoothing: antialiased;
|
328
|
+
|
329
|
+
-moz-osx-font-smoothing: grayscale;
|
330
|
+
|
331
|
+
font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'MS Pゴシック', 'MS PGothic', sans-serif;
|
332
|
+
|
333
|
+
box-sizing: border-box;
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
*,*::before,*::after{
|
338
|
+
|
339
|
+
box-sizing: border-box;
|
340
|
+
|
341
|
+
}
|
342
|
+
|
343
|
+
body{
|
344
|
+
|
345
|
+
line-height: 1.8;
|
346
|
+
|
347
|
+
min-width: 1140px;
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
a{
|
352
|
+
|
353
|
+
text-decoration: none;
|
354
|
+
|
355
|
+
color: inherit;
|
356
|
+
|
357
|
+
transition: .3s;
|
358
|
+
|
359
|
+
}
|
360
|
+
|
361
|
+
a:hover{
|
362
|
+
|
363
|
+
opacity: .5;
|
364
|
+
|
365
|
+
transition: .3s;
|
366
|
+
|
367
|
+
}
|
368
|
+
|
369
|
+
.logo{
|
370
|
+
|
371
|
+
width: 100%;
|
372
|
+
|
373
|
+
height: 100%;
|
374
|
+
|
375
|
+
vertical-align: bottom;
|
376
|
+
|
377
|
+
}
|
378
|
+
|
379
|
+
.photo{
|
380
|
+
|
381
|
+
width: 200px;
|
382
|
+
|
383
|
+
height: 185px;
|
384
|
+
|
385
|
+
vertical-align: bottom;
|
386
|
+
|
387
|
+
}
|
388
|
+
|
389
|
+
/* mossdule */
|
390
|
+
|
391
|
+
/* --------------------------------- */
|
392
|
+
|
393
|
+
/* btn base */
|
394
|
+
|
395
|
+
.m-btn{
|
396
|
+
|
397
|
+
display: block;
|
398
|
+
|
399
|
+
width: 300px;
|
400
|
+
|
401
|
+
text-align: center;
|
402
|
+
|
403
|
+
font-weight: bold;
|
404
|
+
|
405
|
+
padding: 10px;
|
406
|
+
|
407
|
+
}
|
408
|
+
|
409
|
+
/* btn colour primary */
|
410
|
+
|
411
|
+
.m-btn-primary{
|
412
|
+
|
413
|
+
background-color: #1a1a1a;
|
414
|
+
|
415
|
+
color: #fff;
|
416
|
+
|
417
|
+
}
|
418
|
+
|
419
|
+
/* btn colour secondary */
|
420
|
+
|
421
|
+
.m-btn-secondary{
|
422
|
+
|
423
|
+
background-color: #fff;
|
424
|
+
|
425
|
+
color: #1a1a1a;
|
426
|
+
|
427
|
+
}
|
428
|
+
|
429
|
+
/* btn colour cta */
|
430
|
+
|
431
|
+
.m-btn-cta{
|
432
|
+
|
433
|
+
background-color: #bd2424;
|
434
|
+
|
435
|
+
color: #fff;
|
436
|
+
|
437
|
+
}
|
438
|
+
|
439
|
+
/* title */
|
440
|
+
|
441
|
+
.m-ttl{
|
442
|
+
|
443
|
+
font-size: 30px;
|
444
|
+
|
445
|
+
font-weight: bold;
|
446
|
+
|
447
|
+
}
|
448
|
+
|
449
|
+
/* utility */
|
450
|
+
|
451
|
+
/* --------------------------------- */
|
452
|
+
|
453
|
+
.u-wrap{
|
454
|
+
|
455
|
+
width: 1080px;
|
456
|
+
|
457
|
+
margin: 0 auto;
|
458
|
+
|
459
|
+
}
|
460
|
+
|
461
|
+
.u-ptb-m{
|
462
|
+
|
463
|
+
padding: 80px 0;
|
464
|
+
|
465
|
+
}
|
466
|
+
|
467
|
+
/* header */
|
468
|
+
|
469
|
+
/* --------------------------------- */
|
470
|
+
|
471
|
+
.header{
|
472
|
+
|
473
|
+
display: flex;
|
474
|
+
|
475
|
+
justify-content: space-between;
|
476
|
+
|
477
|
+
align-items: center;
|
478
|
+
|
479
|
+
height: 70px;
|
480
|
+
|
481
|
+
width: 100%;
|
482
|
+
|
483
|
+
padding: 0 30px;
|
484
|
+
|
485
|
+
border-bottom: 1px solid #eee;
|
486
|
+
|
487
|
+
background-color: #ffffff;
|
488
|
+
|
489
|
+
position: sticky;
|
490
|
+
|
491
|
+
left: 0;
|
492
|
+
|
493
|
+
top: 0;
|
494
|
+
|
495
|
+
z-index: 1;
|
496
|
+
|
497
|
+
}
|
498
|
+
|
499
|
+
.header-logo{
|
500
|
+
|
501
|
+
width: 80px;
|
502
|
+
|
503
|
+
background-color: orange;
|
504
|
+
|
505
|
+
}
|
506
|
+
|
507
|
+
.header-nav-list{
|
508
|
+
|
509
|
+
display: flex;
|
510
|
+
|
511
|
+
}
|
512
|
+
|
513
|
+
.header-nav-item{
|
514
|
+
|
515
|
+
font-weight: bold;
|
516
|
+
|
517
|
+
margin-right: 30px;
|
518
|
+
|
519
|
+
outline: 1px solid black;
|
520
|
+
|
521
|
+
}
|
522
|
+
|
523
|
+
.header-nav-item:last-child{
|
524
|
+
|
525
|
+
margin-right: 0;
|
526
|
+
|
527
|
+
}
|
528
|
+
|
529
|
+
/* kv */
|
530
|
+
|
531
|
+
/* --------------------------------- */
|
532
|
+
|
533
|
+
.top-kv{
|
534
|
+
|
535
|
+
height: 70vh;
|
536
|
+
|
537
|
+
display: flex;
|
538
|
+
|
539
|
+
justify-content: center;
|
540
|
+
|
541
|
+
align-items: center;
|
542
|
+
|
543
|
+
background:url(photo_nyc1.jpg) center / cover;
|
544
|
+
|
545
|
+
}
|
546
|
+
|
547
|
+
.top-kv-main-copy{
|
548
|
+
|
549
|
+
font-weight: bold;
|
550
|
+
|
551
|
+
font-size:35px;
|
552
|
+
|
553
|
+
text-align: center;
|
554
|
+
|
555
|
+
}
|
556
|
+
|
557
|
+
.top-kv-sub-copy{
|
558
|
+
|
559
|
+
font-weight: bold;
|
560
|
+
|
561
|
+
font-size: 18px;
|
562
|
+
|
563
|
+
text-align: center;
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
.top-kv-btn{
|
568
|
+
|
569
|
+
margin:40px auto 0;
|
570
|
+
|
571
|
+
}
|
572
|
+
|
573
|
+
/* feature */
|
574
|
+
|
575
|
+
/* --------------------------------- */
|
576
|
+
|
577
|
+
.top-feature{
|
578
|
+
|
579
|
+
color: #fff;
|
580
|
+
|
581
|
+
background-color: #1a1a1a;
|
582
|
+
|
583
|
+
}
|
584
|
+
|
585
|
+
.top-feature-copy{
|
586
|
+
|
587
|
+
font-size: 30px;
|
588
|
+
|
589
|
+
font-weight: bold;
|
590
|
+
|
591
|
+
}
|
592
|
+
|
593
|
+
.top-feature-txt{
|
594
|
+
|
595
|
+
margin-top: 10px;
|
596
|
+
|
597
|
+
line-height: 2.2;
|
598
|
+
|
599
|
+
}
|
600
|
+
|
601
|
+
.top-feature-btn{
|
602
|
+
|
603
|
+
margin-top: 40px;
|
604
|
+
|
605
|
+
}
|
606
|
+
|
607
|
+
/* service */
|
608
|
+
|
609
|
+
/* --------------------------------- */
|
610
|
+
|
611
|
+
.top-service-ttl{
|
612
|
+
|
613
|
+
text-align: center;
|
614
|
+
|
615
|
+
}
|
616
|
+
|
617
|
+
.top-service-list{
|
618
|
+
|
619
|
+
display: flex;
|
620
|
+
|
621
|
+
flex-wrap: wrap;
|
622
|
+
|
623
|
+
margin-top: 20px;
|
624
|
+
|
625
|
+
}
|
626
|
+
|
627
|
+
.top-service-item{
|
628
|
+
|
629
|
+
width: 49%;
|
630
|
+
|
631
|
+
margin-right: calc(100% - (49% * 2));
|
632
|
+
|
633
|
+
margin-top: 20px;
|
634
|
+
|
635
|
+
}
|
636
|
+
|
637
|
+
.top-service-item:nth-child(2n){
|
638
|
+
|
639
|
+
margin-right: 0;
|
640
|
+
|
641
|
+
}
|
642
|
+
|
643
|
+
.top-service-item:nth-child(-n+2){
|
644
|
+
|
645
|
+
margin-top: 0;
|
646
|
+
|
647
|
+
}
|
648
|
+
|
649
|
+
.top-service-item-ttl{
|
650
|
+
|
651
|
+
font-weight: bold;
|
652
|
+
|
653
|
+
font-size: 18px;
|
654
|
+
|
655
|
+
}
|
656
|
+
|
657
|
+
.top-service-btn{
|
658
|
+
|
659
|
+
margin: 40px auto 0;
|
660
|
+
|
661
|
+
}
|
662
|
+
|
663
|
+
```
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
### 試したこと
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
ここに問題に対して試したことを記載してください。
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
### 補足情報(FW/ツールのバージョンなど)
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
ここにより詳細な情報を記載してください。
|