質問編集履歴

2

ソースコードの追加

2019/08/24 02:50

投稿

ichitama
ichitama

スコア4

test CHANGED
File without changes
test CHANGED
@@ -28,6 +28,10 @@
28
28
 
29
29
  IE11でも動いていました。
30
30
 
31
+ こちらのHTML/CSSのみだと動くようですので、
32
+
33
+ bodyの中身を貼り付けます。
34
+
31
35
 
32
36
 
33
37
  ### 該当のソースコード
@@ -38,7 +42,37 @@
38
42
 
39
43
  ```html
40
44
 
45
+ <!DOCTYPE html>
41
46
 
47
+ <html lang="ja">
48
+
49
+ <head>
50
+
51
+ <meta charset="utf-8">
52
+
53
+ <meta name="viewport" content="width=device-width, initial-scale=1">
54
+
55
+
56
+
57
+ <title>メニュー一覧</title>
58
+
59
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
60
+
61
+ <link rel="stylesheet" href="css/style.css" >
62
+
63
+
64
+
65
+
66
+
67
+ </head>
68
+
69
+
70
+
71
+ <body id="MENU">
72
+
73
+
74
+
75
+ <div id="header"></div>
42
76
 
43
77
  <div class="add-control">
44
78
 
@@ -57,6 +91,40 @@
57
91
  </div>
58
92
 
59
93
  </div>
94
+
95
+ <div id="footer"></div>
96
+
97
+ <p id="page-top"><a href="#wrap">PAGE TOP</a></p>
98
+
99
+ <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
100
+
101
+ <script>
102
+
103
+ $(function() {
104
+
105
+ $("#header").load("header.html");
106
+
107
+ });
108
+
109
+ $(function() {
110
+
111
+ $("#footer").load("footer.html");
112
+
113
+ });
114
+
115
+ </script>
116
+
117
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
118
+
119
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
120
+
121
+ <script src="js/pagetop.js"></script>
122
+
123
+
124
+
125
+ </body>
126
+
127
+
60
128
 
61
129
  ```
62
130
 
@@ -84,7 +152,7 @@
84
152
 
85
153
 
86
154
 
87
- - 別ページのアンカーリンク
155
+ - 別ページのアンカーリンク(アンカーリンク先とbodyの中身は一緒です)
88
156
 
89
157
  ```html
90
158
 

1

動作の確認の追加

2019/08/24 02:50

投稿

ichitama
ichitama

スコア4

test CHANGED
File without changes
test CHANGED
@@ -23,6 +23,10 @@
23
23
  Microsoft Edge以外でも動くようになってほしい。
24
24
 
25
25
 
26
+
27
+ 8/24追記:
28
+
29
+ IE11でも動いていました。
26
30
 
27
31
 
28
32