回答編集履歴

1

add full html

2020/07/18 10:05

投稿

YufanLou
YufanLou

スコア464

test CHANGED
@@ -97,3 +97,127 @@
97
97
  - buttonに.collapedが要らない
98
98
 
99
99
  - aの中のpタグを削除する
100
+
101
+
102
+
103
+ ---
104
+
105
+
106
+
107
+ 追記:head を含める HTML 全体を追記します。
108
+
109
+
110
+
111
+ 注意すべくのはjQueryの読み込みはBootstrapのJSの読み込みの前にすること。(そうしなかったらブラウザーコンソールでエラーメッセージにそうしなさいと提示されます)
112
+
113
+
114
+
115
+ ```html
116
+
117
+ <!DOCTYPE html>
118
+
119
+ <html>
120
+
121
+ <head>
122
+
123
+ <meta charset="utf-8">
124
+
125
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
126
+
127
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" name="viewport">
128
+
129
+ <title>music</title>
130
+
131
+
132
+
133
+ <!-- jQuery読み込み -->
134
+
135
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
136
+
137
+ <!-- BootstrapのCSS読み込み -->
138
+
139
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
140
+
141
+ <!-- BootstrapのJS読み込み -->
142
+
143
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
144
+
145
+ <!-- FontAwesome -->
146
+
147
+ <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
148
+
149
+
150
+
151
+ <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
152
+
153
+ <script>var __adobewebfontsappname__="dreamweaver"</script>
154
+
155
+ <script src="http://use.edgefonts.net/alfa-slab-one:n4:default;abril-fatface:n4:default.js" type="text/javascript"></script>
156
+
157
+ </head>
158
+
159
+ <body>
160
+
161
+ <div class="navbar navbar-expand-sm navbar-light bg-light">
162
+
163
+ <button
164
+
165
+ class="navbar-toggler"
166
+
167
+ id="nav"
168
+
169
+ type="button"
170
+
171
+ data-toggle="collapse"
172
+
173
+ data-target="#global_nav"
174
+
175
+ aria-controls="navbarSupportedContent"
176
+
177
+ aria-expanded="false"
178
+
179
+ aria-label="Toggle navigation"
180
+
181
+ >
182
+
183
+ <span class="navbar-toggler-icon"></span>
184
+
185
+ </button>
186
+
187
+ <div class="collapse navbar-collapse" id="global_nav">
188
+
189
+ <ul class="navbar-nav" id="global_navlist">
190
+
191
+ <li class="nav-item">
192
+
193
+ <a class="nav-link" href="index.html"> TOP </a>
194
+
195
+ <li class="nav-item">
196
+
197
+ <a class="nav-link" href="biography.html"> BIOGRAPHY </a>
198
+
199
+ <li class="nav-item">
200
+
201
+ <a class="nav-link" href="discography.html"> DISCOGRAPHY </a>
202
+
203
+ <li class="nav-item">
204
+
205
+ <a class="nav-link" href="shop.html"> GOODS </a>
206
+
207
+ <li class="nav-item">
208
+
209
+ <a class="nav-link" href="contact.html"> CONTACT </a>
210
+
211
+ </ul>
212
+
213
+ </div>
214
+
215
+ </div>
216
+
217
+ </body>
218
+
219
+ </html>
220
+
221
+
222
+
223
+ ```