質問編集履歴

2

css追加。記述ミス修正。

2018/10/26 07:32

投稿

asuyan01
asuyan01

スコア12

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,11 @@
12
12
 
13
13
  ```
14
14
 
15
- 反映されません。
15
+ 反映されません。どこをなおすべきでしょうか?
16
+
17
+
18
+
19
+ 変更されるはずの画像が読み込めていません!
16
20
 
17
21
  ```
18
22
 
@@ -32,7 +36,7 @@
32
36
 
33
37
  $('window').scroll(function(){
34
38
 
35
- var works = $('#main_top2 h2').offset().top;
39
+ var works = $('#main_top1 h2').offset().top;
36
40
 
37
41
  var navi = $('#fixed img').scrollTop();
38
42
 
@@ -62,7 +66,7 @@
62
66
 
63
67
  ```
64
68
 
65
- ### 該当のソースコード
69
+ ### HTML
66
70
 
67
71
 
68
72
 
@@ -214,12 +218,172 @@
214
218
 
215
219
 
216
220
 
217
- ### works
221
+ ### css
218
222
 
219
223
 
220
224
 
221
225
  ```css
222
226
 
227
+ @charset "UTF-8";
228
+
229
+ /* CSS Document */
230
+
231
+ body{
232
+
233
+ font-family:"Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
234
+
235
+ /* background-image: url(../image/top.jpg);*/
236
+
237
+ /* width: 1400px;*/
238
+
239
+ font-size: 10px;
240
+
241
+ color: #000000;
242
+
243
+ min-width: 1000px;
244
+
245
+ }
246
+
247
+ #header{
248
+
249
+ height: 100vh;
250
+
251
+ background-image: url(../image/back_img.jpg);
252
+
253
+ }
254
+
255
+ h1{
256
+
257
+ float: left;
258
+
259
+ margin-top: 44px;
260
+
261
+ margin-left: 80px;
262
+
263
+ }
264
+
265
+ #fixed{
266
+
267
+ position: fixed;
268
+
269
+ top: 274px;
270
+
271
+ left: 82px;
272
+
273
+ }
274
+
275
+ #header_nav{
276
+
277
+ float: right;
278
+
279
+ margin-right: 80px;
280
+
281
+ margin-top: 48px;
282
+
283
+ }
284
+
285
+ #header_nav li{
286
+
287
+ float: left;
288
+
289
+ margin-left: 15px;
290
+
291
+ }
292
+
293
+ #header_nav li a{
294
+
295
+ color: #000000;
296
+
297
+ letter-spacing: 1.7px;
298
+
299
+ }
300
+
301
+ #header_nav li a:hover{
302
+
303
+ color: #989898;
304
+
305
+ }
306
+
307
+ #header .top{
308
+
309
+ clear: both;
310
+
311
+ text-align: center;
312
+
313
+ }
314
+
315
+ #header .top img{
316
+
317
+ margin-top: 210px;
318
+
319
+ }
320
+
321
+ #header_bottom{
322
+
323
+ display: block;
324
+
325
+ width: 60px;
326
+
327
+ margin-left: auto;
328
+
329
+ margin-right: auto;
330
+
331
+ letter-spacing: 1.7px;
332
+
333
+ position: absolute;
334
+
335
+ left: 50%;
336
+
337
+ right: 50%;
338
+
339
+ bottom: 50px;
340
+
341
+ }
342
+
343
+ #header_bottom a{
344
+
345
+ font-size: 15px;
346
+
347
+ color: #989898;
348
+
349
+ text-decoration: none;
350
+
351
+ }
352
+
353
+ #header_bottom a img{
354
+
355
+ margin-top: 7px;
356
+
357
+ display: block;
358
+
359
+ width: 20px;
360
+
361
+ margin-left: auto;
362
+
363
+ margin-right: auto;
364
+
365
+ margin-bottom: 19px;
366
+
367
+ }
368
+
369
+ #main{
370
+
371
+ width: 1044px;
372
+
373
+ margin-left: auto;
374
+
375
+ margin-right: auto;
376
+
377
+ }
378
+
379
+ #main_top1{
380
+
381
+ padding-top: 99px;
382
+
383
+ padding-bottom:38px;
384
+
385
+ }
386
+
223
387
  #main_top1 h2{
224
388
 
225
389
  font-size: 24px;
@@ -232,42 +396,248 @@
232
396
 
233
397
  }
234
398
 
399
+ #top_serect{
400
+
401
+ overflow: hidden;
402
+
403
+ margin-bottom: 30px;
404
+
405
+ }
406
+
407
+ #top_serect p{
408
+
409
+ float: left;
410
+
411
+ }
412
+
413
+ #top_serect .pop1{
414
+
415
+ margin-left: 90px;
416
+
417
+ margin-right: 80px;
418
+
419
+ }
420
+
421
+ #top_serect .pop2{
422
+
423
+ margin-right: 90px;
424
+
425
+ margin-left: 80px;
426
+
427
+ }
428
+
429
+ #top_serect p:first-of-type,
430
+
431
+ #top_serect p:last-of-type{
432
+
433
+ margin-top: 179px;
434
+
435
+ }
436
+
437
+ #top_serect .pop1,
438
+
439
+ #top_serect .pop2{
440
+
441
+ margin-top: 58px;
442
+
443
+ }
444
+
445
+ #main_top1 .top_bottan{
446
+
447
+ width: 147px;
448
+
449
+ margin-left: auto;
450
+
451
+ margin-right: auto;
452
+
453
+ }
454
+
455
+ #main_top1 .top_bottan p{
456
+
457
+ display: inline-block;
458
+
459
+ margin-bottom: 10px;
460
+
461
+ }
462
+
463
+ #main_top1 .top_bottan a{
464
+
465
+ display: inline-block;
466
+
467
+ width: 147px;
468
+
469
+ margin-left: auto;
470
+
471
+ margin-right: auto;
472
+
473
+ line-height: 36px;
474
+
475
+ font-size: 13px;
476
+
477
+ text-decoration: none;
478
+
479
+ color: #000000;
480
+
481
+ border: solid 1px #e5e5e5;
482
+
483
+ border-radius: 10px;
484
+
485
+ text-align: center;
486
+
487
+ background-color: #e5e5e5;
488
+
489
+ }
490
+
491
+ #main_top1 .top_bottan a:hover{
492
+
493
+ background-color: #ffffff;
494
+
495
+ }
496
+
497
+ #main_top1 .top_bottan .first_bottan{
498
+
499
+ margin-right: 20px;
500
+
501
+ }
502
+
503
+ #main_top2 {
504
+
505
+ margin-top: 152px;
506
+
507
+ }
508
+
509
+ #main_top2 h2{
510
+
511
+ font-size: 24px;
512
+
513
+ text-align: center;
514
+
515
+ letter-spacing: 1.7px;
516
+
517
+ }
518
+
519
+ #top_select2{
520
+
521
+ width: 650px;
522
+
523
+ margin-left: auto;
524
+
525
+ margin-right: auto;
526
+
527
+ overflow: hidden;
528
+
529
+ }
530
+
531
+ #main_top2 p{
532
+
533
+ width: 204px;
534
+
535
+ float: left;
536
+
537
+ margin-top: 20px;
538
+
539
+ font-size: 14px;
540
+
541
+ text-align: center;
542
+
543
+ }
544
+
545
+ #main_top2 dl{
546
+
547
+ width: 384px;
548
+
549
+ float: right;
550
+
551
+ margin-top: 60px;
552
+
553
+
554
+
555
+ }
556
+
557
+ #main_top2 dt{
558
+
559
+ float: left;
560
+
561
+ font-size: 13px;
562
+
563
+ }
564
+
565
+ #main_top2 dd{
566
+
567
+ border-bottom: solid #000000 1px;
568
+
569
+ padding-bottom: 5px;
570
+
571
+ margin-bottom: 20px;
572
+
573
+ text-align: right;
574
+
575
+ font-size: 12px;
576
+
577
+ }
578
+
579
+ #main_top2 dl .none1,
580
+
581
+ #main_top2 dl .none2{
582
+
583
+ border-bottom: none;
584
+
585
+ margin-bottom: 2px;
586
+
587
+ }
588
+
589
+ #footer{
590
+
591
+ margin-top: 172px;
592
+
593
+ margin-bottom: 52px;
594
+
595
+ overflow: hidden;
596
+
597
+ }
598
+
599
+ #footer nav{
600
+
601
+ float: left;
602
+
603
+ margin-left: 80px;
604
+
605
+ }
606
+
607
+ #footer li{
608
+
609
+ float: left;
610
+
611
+ font-size: 10px;
612
+
613
+ margin-right: 15px;
614
+
615
+ }
616
+
617
+ #footer a{
618
+
619
+ color: #000000;
620
+
621
+ letter-spacing: 1.7px;
622
+
623
+ }
624
+
625
+ #footer a:hover{
626
+
627
+ color: #989898;
628
+
629
+ }
630
+
631
+ #footer p{
632
+
633
+ float: right;
634
+
635
+ font-size: 12px;
636
+
637
+ margin-right: 80px;
638
+
639
+ letter-spacing: 1.7px;
640
+
641
+ }
642
+
235
643
  ```
236
-
237
-
238
-
239
- ### navi
240
-
241
-
242
-
243
- ```css
244
-
245
- #fixed{
246
-
247
- position: fixed;
248
-
249
- top: 274px;
250
-
251
- left: 82px;
252
-
253
- }
254
-
255
- ```
256
-
257
- ### profile
258
-
259
-
260
-
261
- ```c
262
-
263
- #main_top2 h2{
264
-
265
- font-size: 24px;
266
-
267
- text-align: center;
268
-
269
- letter-spacing: 1.7px;
270
-
271
- }
272
-
273
- ```

1

HTMLを追加しました。

2018/10/26 07:32

投稿

asuyan01
asuyan01

スコア12

test CHANGED
File without changes
test CHANGED
@@ -62,6 +62,156 @@
62
62
 
63
63
  ```
64
64
 
65
+ ### 該当のソースコード
66
+
67
+
68
+
69
+ ```HTML
70
+
71
+ <!doctype html>
72
+
73
+ <html>
74
+
75
+ <head>
76
+
77
+ <meta charset="UTF-8">
78
+
79
+ <title>無題ドキュメント</title>
80
+
81
+ <link rel="stylesheet" href="css/riset.css">
82
+
83
+ <link rel="stylesheet" href="css/index.css">
84
+
85
+ </head>
86
+
87
+ <body>
88
+
89
+ <header id="header">
90
+
91
+ <h1><img src="image/logo.png" alt="#"></h1>
92
+
93
+ <div id="fixed">
94
+
95
+ <p><img src="image/sukuroru.png" alt="#"></p>
96
+
97
+ </div>
98
+
99
+ <nav id="header_nav">
100
+
101
+ <ul>
102
+
103
+ <li><a href="../0000/index.html">0000</a></li>
104
+
105
+ <li><a href="../0000/work.html">0000</a></li>
106
+
107
+ <li><a href="../0000/web.html">0000</a></li>
108
+
109
+ <li><a href="../0000/dtp.html">0000</a></li>
110
+
111
+ <li><a href="#">PROFILE</a></li>
112
+
113
+ </ul>
114
+
115
+ </nav>
116
+
117
+ <p class="top"><img src="image/header_top.png" alt="#"></p>
118
+
119
+ <p id="header_bottom"><a href="#">SCROLL<img src="image/header_bottom.png" alt="#"></a></p>
120
+
121
+ </header>
122
+
123
+ <main id="main">
124
+
125
+ <article id="main_top1">
126
+
127
+ <h2>WORKS</h2>
128
+
129
+ <div id="top_serect">
130
+
131
+ <p><a href="#"><img src="image/yazirusi2.png" alt="#"></a></p>
132
+
133
+ <p class="pop1"><a href="#"><img src="image/kaimaku.png" alt="#"></a></p>
134
+
135
+ <p><a href="#"><img src="image/youchien.png" alt="#"></a></p>
136
+
137
+ <p class="pop2"><a href="#"><img src="image/kaimaku.png" alt="#"></a></p>
138
+
139
+ <p><a href="#"><img src="image/yazirusi1.png" alt="#"></a></p>
140
+
141
+ </div>
142
+
143
+ <div class="top_bottan">
144
+
145
+ <p class="first_bottan"><a href="../portfolio/web.html">0000</a></p><br><p><a href="../portfolio/dtp.html">0000</a></p>
146
+
147
+ </div>
148
+
149
+ </article>
150
+
151
+ <article id="main_top2">
152
+
153
+ <h2>0000</h2>
154
+
155
+ <div id="top_select2">
156
+
157
+ <p><img src="image/photo_1.png" alt="#">0000</p>
158
+
159
+ <dl>
160
+
161
+ <dt>0000</dt><dd>0000</dd>
162
+
163
+ <dt>Career</dt><dd class="none2">0000</dd><dd class="none1">0000</dd><dd>0000</dd>
164
+
165
+ <dt>0000</dt><dd>0000</dd>
166
+
167
+ <dt>0000</dt><dd>0000</dd>
168
+
169
+ <dt>0000</dt><dd>0000</dd>
170
+
171
+ <dt>0000</dt><dd>0000</dd>
172
+
173
+ </dl>
174
+
175
+ </div>
176
+
177
+ </article>
178
+
179
+ </main>
180
+
181
+ <footer id="footer">
182
+
183
+ <nav>
184
+
185
+ <ul>
186
+
187
+ <li><a href="../0000/index.html">TOP</a></li>
188
+
189
+ <li><a href="../0000/work.html">WORKS</a></li>
190
+
191
+ <li><a href="../0000/web.html">WEB</a></li>
192
+
193
+ <li><a href="../0000/dtp.html">DTP</a></li>
194
+
195
+ <li><a href="#">PROFILE</a></li>
196
+
197
+ </ul>
198
+
199
+ </nav>
200
+
201
+ <p>©0000</p>
202
+
203
+ </footer>
204
+
205
+ <script src="js/jquery-3.3.1.min.js"></script>
206
+
207
+ <script src="js/index.js"></script>
208
+
209
+ </body>
210
+
211
+ </html>
212
+
213
+ ```
214
+
65
215
 
66
216
 
67
217
  ### works