teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

7

一部追記しました。

2017/07/10 02:03

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -16,6 +16,7 @@
16
16
  ======================= 追記 ========================
17
17
  初心者マークの存在を知らず大変申し訳ありません。
18
18
  教えていただきありがとうございました。
19
+ 下記に記載されている内容でおおよそすべてかと思います。
19
20
 
20
21
  一部記載内容に問題がある為削除しています。
21
22
  ・CSSのリンク

6

削除箇所追記しました。

2017/07/10 02:03

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -16,12 +16,17 @@
16
16
  ======================= 追記 ========================
17
17
  初心者マークの存在を知らず大変申し訳ありません。
18
18
  教えていただきありがとうございました。
19
+
19
- 一部リンクなどは削除していますが下記のような記述をしております
20
+ 一部記載内容に問題がある為削除しています。
21
+ ・CSSのリンク
22
+ ・画像のalt
23
+ ・メニューボタンのリンクなど
24
+
20
25
  また以下の記述は固定で変更不可です。
21
- <div id="Contents">
26
+ <div id="Contents">
22
- <div class="GridSet">
27
+ <div class="GridSet">
23
- <div class="Grid4">
28
+ <div class="Grid4">
24
- <!--#include virtual="/ssi/footer.txt"-->
29
+ <!--#include virtual="/ssi/footer.txt"-->
25
30
 
26
31
 
27
32
  ```HTML
@@ -33,7 +38,7 @@
33
38
  <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
34
39
  <script type="text/javascript" src="scroll.js"></script>
35
40
 
36
- <link rel="index"" title="" />
41
+ <link rel="index" title="" />
37
42
  <link href="" type="text/css" rel="stylesheet" media="screen,print" />
38
43
  </head>
39
44
 

5

参考サイトのリンクを修正しました。

2017/07/10 02:01

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -7,10 +7,10 @@
7
7
  ======================= 参考サイト ========================
8
8
 
9
9
  1:CSSのみで実装可能
10
- https://theorthodoxworks.com/web-design/moving-menu-bar-with-mouse-hover/
10
+ https://[theorthodoxworks.com/web-design/moving-menu-bar-with-mouse-hover/](http://theorthodoxworks.com/web-design/moving-menu-bar-with-mouse-hover/)
11
11
 
12
12
  2:jsで実装可能
13
- http://weblabla.m-pokoj.net/nav02/
13
+ http://[weblabla.m-pokoj.net/nav02/](http://weblabla.m-pokoj.net/nav02/)
14
14
 
15
15
 
16
16
  ======================= 追記 ========================

4

一部追記しました。

2017/07/10 01:43

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -412,4 +412,63 @@
412
412
  }
413
413
  * html #Footer p {margin: -1.5em auto 0;}
414
414
  *:first-child+html #Footer p {margin: -1.5em auto 0;}
415
+ ```
416
+ ```scroll.js
417
+ $(function(){
418
+ // #で始まるアンカーをクリックした場合に処理
419
+ $('a[href^="#"]').click(function() {
420
+ // スクロールの速度
421
+ var speed = 400; // ミリ秒
422
+ // アンカーの値取得
423
+ var href= $(this).attr("href");
424
+ // 移動先を取得
425
+ var target = $(href == "#" || href == "" ? 'html' : href);
426
+ // 移動先を数値で取得
427
+ var position = target.offset().top;
428
+ // スムーススクロール
429
+ $('body,html').animate({scrollTop:position}, speed, 'swing');
430
+ return false;
431
+ });
432
+ });
433
+ ```
434
+ ```Footer-ssi
435
+ <div id="Footer">
436
+ <h2</h2>
437
+ <ul>
438
+ <li class="FirstItem"><a href=""></a></li>
439
+ <li><a href=""></a></li>
440
+ <li><a href=""></a></li>
441
+ <li><a href=""></a></li>
442
+ </ul>
443
+ </div><!--/FooterArea-->
444
+
445
+ <!-- START OF SmartSource Data Collector TAG -->
446
+ <!-- Copyright (c)-->
447
+ <!-- Version: 9.4.0 -->
448
+ <!-- Tag Builder Version: 3.3 -->
449
+ <!-- Created:-->
450
+ <script src="/scripts/webtrends.js" type="text/javascript"></script>
451
+ <!-- ----------------------------------------------------------------------------------- -->
452
+ <!-- Warning: The two script blocks below must remain inline. Moving them to an external -->
453
+ <!-- JavaScript include file can cause serious problems with cross-domain tracking. -->
454
+ <!-- ----------------------------------------------------------------------------------- -->
455
+ <script type="text/javascript">
456
+ //<![CDATA[
457
+ var _tag=new WebTrends();
458
+ _tag.dcsGetId();
459
+ //]]>
460
+ </script>
461
+ <script type="text/javascript">
462
+ //<![CDATA[
463
+ _tag.dcsCustom=function(){
464
+ // Add custom parameters here.
465
+ //_tag.DCSext.param_name=param_value;
466
+ }
467
+ _tag.dcsCollect();
468
+ //]]>
469
+ </script>
470
+ <noscript>
471
+ <div></div>
472
+ </noscript>
473
+ <!-- END OF SmartSource Data Collector TAG -->
415
474
  ```

3

一部不備ありましたので変更しました

2017/07/10 01:23

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -309,9 +309,7 @@
309
309
  float: left;
310
310
  }
311
311
 
312
- /*========== ```ここに言語を入力
313
- コード
314
- ```リンクボタン ==========*/
312
+ /*==========リンクボタン ==========*/
315
313
  .button2 {
316
314
  margin:15px 0 0 0;
317
315
  padding:0px;

2

記述を変更しました。

2017/07/10 00:57

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -23,7 +23,8 @@
23
23
  <div class="Grid4">
24
24
  <!--#include virtual="/ssi/footer.txt"-->
25
25
 
26
+
26
- HTML
27
+ ```HTML
27
28
  <!DOCTYPE html>
28
29
  <html lang="ja">
29
30
  <head>
@@ -85,9 +86,8 @@
85
86
  <!--#include virtual="/ssi/footer.txt"-->
86
87
  </body>
87
88
  </html>
88
-
89
+ ```
89
- CSS
90
+ ```CSS
90
- /*========== ベース設定 ==========*/
91
91
  html{overflow-y: scroll;}
92
92
 
93
93
  ul li{
@@ -273,7 +273,7 @@
273
273
  height:500px;
274
274
  }
275
275
 
276
- /*========== 製品一覧 ==========*/
276
+ /*========== 一覧 ==========*/
277
277
 
278
278
  .item_box1 {
279
279
  margin:0;
@@ -413,4 +413,5 @@
413
413
  vertical-align: top;
414
414
  }
415
415
  * html #Footer p {margin: -1.5em auto 0;}
416
- *:first-child+html #Footer p {margin: -1.5em auto 0;}
416
+ *:first-child+html #Footer p {margin: -1.5em auto 0;}
417
+ ```

1

記述したHTML、CSSを追記しました。

2017/07/10 00:53

投稿

yuika39
yuika39

スコア18

title CHANGED
File without changes
body CHANGED
@@ -11,4 +11,406 @@
11
11
 
12
12
  2:jsで実装可能
13
13
  http://weblabla.m-pokoj.net/nav02/
14
+
15
+
16
+ ======================= 追記 ========================
17
+ 初心者マークの存在を知らず大変申し訳ありません。
18
+ 教えていただきありがとうございました。
19
+ 一部リンクなどは削除していますが下記のような記述をしております。
20
+ また以下の記述は固定で変更不可です。
21
+ <div id="Contents">
22
+ <div class="GridSet">
23
+ <div class="Grid4">
24
+ <!--#include virtual="/ssi/footer.txt"-->
25
+
26
+ 【HTML】
27
+ <!DOCTYPE html>
28
+ <html lang="ja">
29
+ <head>
30
+ <title></title>
31
+
32
+ <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
33
+ <script type="text/javascript" src="scroll.js"></script>
34
+
35
+ <link rel="index"" title="" />
36
+ <link href="" type="text/css" rel="stylesheet" media="screen,print" />
37
+ </head>
38
+
39
+ <body>
40
+ <!-- ============== content_start ============= -->
41
+ <div id="Contents">
42
+ <div class="GridSet">
43
+ <div class="Grid4">
44
+
45
+ <div class="product">
46
+
47
+ <div id="header-fixed">
48
+ <div id="header-bk">
49
+ <a class="logo" href=""><img src=""></a>
50
+ <nav class="global-nav">
51
+ <p><a href="#top">Menu name</a></p>
52
+ <p><a href="#content_1">Menu name</a></p>
53
+ <p><a href="#content_2">Menu name</a></p>
54
+ <p><a href="#content_3">Menu name</a></p>
55
+ <p><a href="#content_4">Menu name</a></p>
56
+ <span class="global-nav--bar"></span>
57
+ </nav>
58
+ </div>
59
+ </div>
60
+
61
+ <main id="top">
62
+ <div id="content_1">
63
+ </div>
64
+
65
+ <div id="content_2">
66
+ </div>
67
+
68
+ <div id="content_3">
69
+ </div>
70
+
71
+ <div id="content_4">
72
+ </div>
73
+ </main>
74
+ <div class="Section">
75
+ <ul class="PageTop">
76
+ </ul>
77
+ </div><!--/Section-->
78
+
79
+ </div><!--/product-->
80
+
81
+ </div><!--/Grid4-->
82
+ </div><!--/GridSet-->
83
+ </div><!--/ContentsArea-->
84
+
85
+ <!--#include virtual="/ssi/footer.txt"-->
86
+ </body>
87
+ </html>
88
+
89
+ 【CSS】
90
+ /*========== ベース設定 ==========*/
91
+ html{overflow-y: scroll;}
92
+
93
+ ul li{
94
+ list-style-type: none;
95
+ }
96
+
97
+ img {
98
+ border: 0px;
99
+ }
100
+
101
+ body {
102
+ margin: 0;
103
+ padding: 0;
104
+ font-family: 'メイリオ',Meiryo,'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','MS Pゴシック',sans-serif;
105
+ color: #333;
106
+ font-size: 100%;
107
+ line-height: 100%;
108
+ text-align: center;
109
+ background-color:#333333;
110
+ -webkit-text-size-adjust: 100%;
111
+ line-height: 160%;
112
+ }
113
+
114
+ sup {
115
+ margin: auto 1px auto;
116
+ font-size: 92.2%;
117
+ vertical-align: 0.15em;
118
+ line-height: 100%;
119
+ }
120
+ * html body sup {font-size: 105%;}
121
+ *:first-child+html body sup {font-size: 105%;}
122
+
123
+ /*========== h3タグ設定 ==========*/
124
+ .title {
125
+ margin:0 0 25px 0;
126
+ padding:0;
127
+ line-height:40px;
128
+ }
129
+
130
+ /*========== 画像中央配置 ==========*/
131
+ .img_center {
132
+ display: block;
133
+ margin-left: auto;
134
+ margin-right: auto;
135
+ }
136
+
137
+ /*========== ヘッダー ==========*/
138
+ /* ヘッダーの固定 */
139
+ div#header-fixed {
140
+ background-color:#000000;/* 背景色(黒) */
141
+ position: fixed;/* ヘッダーの固定 */
142
+ top: 0px;/* 位置(上0px) */
143
+ left: 0px;/* 位置(右0px) */
144
+ width: 100%;/* 横幅100%*/
145
+ height: 50px;/* 縦幅140px */
146
+ }
147
+
148
+ div#header-bk {
149
+ background-color:#000000;/* 背景色(黒) */
150
+ margin:0 auto;
151
+ padding:0;
152
+ height:50px;/* 縦の高さ*/
153
+ width:965px;/* 横の幅*/
154
+ }
155
+
156
+ /*========== ヘッダーボタン ==========*/
157
+ /* メニュー全体のスタイル */
158
+ .global-nav {
159
+ position: relative;
160
+ width: 100%;
161
+ height: 50px;
162
+ line-height: 20px;
163
+ max-width: 720px;
164
+ margin: 0;
165
+ float: right;
166
+ }
167
+
168
+ /* 各メニューのスタイル */
169
+ .global-nav p {
170
+ float: left;
171
+ width: 20%;
172
+ }
173
+ .global-nav p a {
174
+ display: block;
175
+ color: #ffffff;
176
+ text-decoration:none;
177
+ }
178
+
179
+ /* 黒いバーのスタイル */
180
+ .global-nav--bar {
181
+ position: absolute;
182
+ display: block;
183
+ bottom: 0;
184
+ left: 0;
185
+ width: 20%;
186
+ height: 5px;
187
+ background: #ffffff;
188
+ -webkit-transition: all .5s;
189
+ transition: all .5s;
190
+ }
191
+
192
+ /* ホバーでバーの位置を変化 */
193
+ .global-nav p:nth-child(1):hover ~ .global-nav--bar {
194
+ left: 0;
195
+ }
196
+ .global-nav p:nth-child(2):hover ~ .global-nav--bar {
197
+ left: 20%;
198
+ }
199
+ .global-nav p:nth-child(3):hover ~ .global-nav--bar {
200
+ left: 40%;
201
+ }
202
+ .global-nav p:nth-child(4):hover ~ .global-nav--bar {
203
+ left: 60%;
204
+ }
205
+ .global-nav p:nth-child(5):hover ~ .global-nav--bar {
206
+ left: 80%;
207
+ }
208
+
209
+ .logo{
210
+ margin:0;
211
+ padding:0;
212
+ height:50px;
213
+ width:200px;
214
+ float:left;
215
+ }
216
+
217
+ /*========== メインコンテンツ基本設定 ==========*/
218
+ div.product {
219
+ margin:0;
220
+ padding:0;
221
+ width:965px;
222
+ display:inline-block;
223
+ font-size:83%;
224
+ }
225
+
226
+ /*========== メイン ==========*/
227
+ main#top{
228
+ background-color:#333333;
229
+ margin:0;
230
+ padding:80px 0 0 0;
231
+ }
232
+
233
+ /*========== メインコンテンツ ==========*/
234
+ div.top_img{
235
+ margin:0;
236
+ padding:0;
237
+ width:965px;
238
+ height:600px;
239
+ }
240
+
241
+ div#content_1 {
242
+ margin:0 30px 0 30px;
243
+ padding:60px 0 0 0;
244
+ width:905px;
245
+ height:500px;
246
+ }
247
+
248
+ div#content_2{
249
+ margin:0 30px 0 30px;
250
+ padding:60px 0 0 0;
251
+ width:905px;
252
+ height:500px;
253
+ }
254
+
255
+ div#content_3{
256
+ margin:0 30px 0 30px;
257
+ padding:60px 0 0 0;
258
+ width:905px;
259
+ height:500px;
260
+ }
261
+
262
+ div#content_4{
263
+ margin:0 30px 0 30px;
264
+ padding:60px 0 0 0;
265
+ width:905px;
266
+ height:500px;
267
+ }
268
+
269
+ div#content_5{
270
+ margin:0 30px 0 30px;
271
+ padding:60px 0 0 0;
272
+ width:905px;
273
+ height:500px;
274
+ }
275
+
276
+ /*========== 製品一覧 ==========*/
277
+
278
+ .item_box1 {
279
+ margin:0;
280
+ padding:0;
281
+ width:905px;
282
+ height:173px;
283
+ font-size:0;
284
+ }
285
+
286
+ .item_box2 {
287
+ margin:10px 0 0 0;
288
+ padding:0;
289
+ width:905px;
290
+ height:173px;
291
+ font-size:0;
292
+ }
293
+
294
+ .item1 {
295
+ margin:0 10px 0 0;
296
+ padding:0;
297
+ width:173px;
298
+ height:173px;
299
+ line-height:173px;
300
+ float: left;
301
+ }
302
+
303
+ .item2 {
304
+ margin:0;
305
+ padding:0;
306
+ width:173px;
307
+ height:173px;
308
+ line-height:173px;
309
+ float: left;
310
+ }
311
+
312
+ /*========== ```ここに言語を入力
313
+ コード
314
+ ```リンクボタン ==========*/
315
+ .button2 {
316
+ margin:15px 0 0 0;
317
+ padding:0px;
318
+ background-color: #C4C4C4;
319
+ color: #fff;
320
+ display: inline-block;
321
+ width:905px;
322
+ height:35px;
323
+ text-align: center;
324
+ text-decoration: none;
325
+ line-height:35px;
326
+ outline: none;
327
+ }
328
+
329
+ .button:hover{
330
+ background-color: #009933;
331
+ }
332
+
333
+ .button::before,
334
+ .button::after {
335
+ position: absolute;
336
+ z-index: -1;
337
+ display: block;
338
+ content: '';
339
+ }
340
+
341
+ .button,
342
+ .button::before,
343
+ .button::after{
344
+ -webkit-box-sizing: border-box;
345
+ -moz-box-sizing: border-box;
346
+ box-sizing: border-box;
347
+ -webkit-transition: all .3s;
348
+ transition: all .3s;
349
+ }
350
+
351
+ /*========== フッター ==========*/
352
+ #Footer {
353
+ clear: both;
354
+ min-width: 965px;
355
+ padding: 30px 0;
356
+ background-color: #e5e5e5;
357
+ overflow: hidden;
358
+ clear:both;
359
+ }
360
+
361
+ #Footer h2 {
362
+ margin: 0;
363
+ padding: 0;
364
+ border: none;
365
+ line-height: 0;
366
+ text-indent: -9999px;
367
+ }
368
+
369
+ #Footer ul {
370
+ width: 965px;
371
+ margin: 0 auto;
372
+ font-size: 67%;
373
+ }
374
+
375
+ #Footer li {
376
+ float: left;
377
+ padding: 0 10px;
378
+ border-left: solid 1px #bbb;
379
+ line-height: 1.5em;
380
+ vertical-align: top;
381
+ }
382
+ * html #Footer li {
383
+ position: relative;
384
+ z-index: 2;
385
+ }
386
+ *:first-child+html #Footer li {
387
+ position: relative;
388
+ z-index: 2;
389
+ }
390
+
391
+ #Footer li.FirstItem {
392
+ padding: 0 10px 0 0;
393
+ border-left: none;
394
+ }
395
+ #Footer li a:link,
396
+ #Footer li a:visited {
397
+ color: #333;
398
+ text-decoration: none;
399
+ }
14
- ###発生している問題・エラーメッセージ
400
+ #Footer li a:hover,
401
+ #Footer li a:active {
402
+ color: #b1000e;
403
+ text-decoration: underline;
404
+ }
405
+
406
+ #Footer p {
407
+ width: 965px;
408
+ margin: 0 auto;
409
+ font-size: 65%;
410
+ text-align: right;
411
+ line-height: 1.5em;
412
+ color: #333;
413
+ vertical-align: top;
414
+ }
415
+ * html #Footer p {margin: -1.5em auto 0;}
416
+ *:first-child+html #Footer p {margin: -1.5em auto 0;}