質問編集履歴
2
CSSが足りていませんでした。追加します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,19 +124,21 @@
|
|
124
124
|
|
125
125
|
background: black;
|
126
126
|
|
127
|
-
padding:0;
|
127
|
+
padding: 0;
|
128
|
-
|
128
|
+
|
129
|
-
}
|
129
|
+
}
|
130
|
-
|
131
|
-
|
132
|
-
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
-
.menu
|
133
|
+
.menu>li {
|
134
134
|
|
135
135
|
font-size: 18px;
|
136
136
|
|
137
137
|
float: left;
|
138
138
|
|
139
|
-
width: 20%;
|
139
|
+
width: 20%;
|
140
|
+
|
141
|
+
/* グローバルナビ5つの場合 */
|
140
142
|
|
141
143
|
height: 60px;
|
142
144
|
|
@@ -144,120 +146,226 @@
|
|
144
146
|
|
145
147
|
background: black;
|
146
148
|
|
147
|
-
list-style-type:none;
|
149
|
+
list-style-type: none;
|
148
150
|
|
149
151
|
text-align: center;
|
150
152
|
|
151
153
|
margin: 0 auto;
|
152
154
|
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
.menu>li a {
|
162
|
+
|
163
|
+
display: block;
|
164
|
+
|
165
|
+
color: #fff;
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
.menu>li a:hover {
|
172
|
+
|
173
|
+
color: #999;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
ul.menu__second-level {
|
180
|
+
|
181
|
+
visibility: hidden;
|
182
|
+
|
183
|
+
opacity: 0;
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
.menu>li:hover {
|
194
|
+
|
195
|
+
background: #072A24;
|
196
|
+
|
197
|
+
-webkit-transition: all .5s;
|
198
|
+
|
199
|
+
transition: all .5s;
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
.menu__second-level li {
|
206
|
+
|
207
|
+
border-top: 1px solid #111;
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
}
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
.menu__second-level li a:hover {
|
220
|
+
|
221
|
+
background: #111;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
.menu__third-level li a:hover {
|
228
|
+
|
229
|
+
background: #2a1f1f;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
.menu__fourth-level li a:hover {
|
236
|
+
|
237
|
+
background: #1d0f0f;
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
/* 下矢印 */
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
.init-bottom:after {
|
250
|
+
|
251
|
+
content: '';
|
252
|
+
|
253
|
+
display: inline-block;
|
254
|
+
|
255
|
+
width: 6px;
|
256
|
+
|
257
|
+
height: 6px;
|
258
|
+
|
259
|
+
margin: 0 0 0 15px;
|
260
|
+
|
261
|
+
border-right: 1px solid #fff;
|
262
|
+
|
263
|
+
border-bottom: 1px solid #fff;
|
264
|
+
|
265
|
+
-webkit-transform: rotate(45deg);
|
266
|
+
|
267
|
+
-ms-transform: rotate(45deg);
|
268
|
+
|
269
|
+
transform: rotate(45deg);
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
/* floatクリア */
|
278
|
+
|
279
|
+
.menu:before,
|
280
|
+
|
281
|
+
.menu:after {
|
282
|
+
|
283
|
+
content: " ";
|
284
|
+
|
285
|
+
display: table;
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
.menu:after {
|
292
|
+
|
293
|
+
clear: both;
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
.menu {
|
300
|
+
|
301
|
+
*zoom: 1;
|
302
|
+
|
303
|
+
}
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
.menu>li.menu__single {
|
308
|
+
|
309
|
+
position: relative;
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
li.menu__single ul.menu__second-level {
|
316
|
+
|
317
|
+
position: absolute;
|
318
|
+
|
319
|
+
top: 40px;
|
320
|
+
|
321
|
+
width: 100%;
|
322
|
+
|
323
|
+
padding: 0;
|
324
|
+
|
325
|
+
list-style-type: none;
|
326
|
+
|
327
|
+
background: #072A24;
|
328
|
+
|
329
|
+
-webkit-transition: all .2s ease;
|
330
|
+
|
331
|
+
transition: all .2s ease;
|
332
|
+
|
333
|
+
z-index: 100
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
li.menu__single:hover ul.menu__second-level {
|
342
|
+
|
343
|
+
top: 50px;
|
344
|
+
|
345
|
+
visibility: visible;
|
346
|
+
|
347
|
+
opacity: 1;
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
@media screen and (max-width: 480px) {
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
.menu {
|
356
|
+
|
357
|
+
height: 30px;
|
358
|
+
|
153
359
|
}
|
154
360
|
|
155
361
|
|
156
362
|
|
157
|
-
|
158
|
-
|
159
|
-
.menu > li
|
363
|
+
.menu > li {
|
160
|
-
|
161
|
-
|
364
|
+
|
162
|
-
|
163
|
-
color: #fff;
|
164
|
-
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
.menu > li a:hover {
|
170
|
-
|
171
|
-
color: #999;
|
172
|
-
|
173
|
-
}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
ul.menu__second-level {
|
178
|
-
|
179
|
-
visibility: hidden;
|
180
|
-
|
181
|
-
o
|
365
|
+
font-size: 9px;
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
}
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
.menu > li:hover {
|
192
|
-
|
193
|
-
background: #072A24;
|
194
|
-
|
195
|
-
-webkit-transition: all .5s;
|
196
|
-
|
197
|
-
transition: all .5s;
|
198
|
-
|
199
|
-
}
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
.menu__second-level li {
|
204
|
-
|
205
|
-
border-top: 1px solid #111;
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
}
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
.menu__second-level li a:hover {
|
218
|
-
|
219
|
-
background: #111;
|
220
|
-
|
221
|
-
}
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
.menu__third-level li a:hover {
|
226
|
-
|
227
|
-
background: #2a1f1f;
|
228
|
-
|
229
|
-
}
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
.background{
|
234
|
-
|
235
|
-
background-color:black;
|
236
|
-
|
237
|
-
width:100%;
|
238
|
-
|
239
|
-
}
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
@media screen and (max-width: 480px) {
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
.menu {
|
248
366
|
|
249
367
|
height: 30px;
|
250
368
|
|
251
|
-
}
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
.menu > li {
|
256
|
-
|
257
|
-
font-size: 9px;
|
258
|
-
|
259
|
-
height: 30px;
|
260
|
-
|
261
369
|
line-height: 30px;
|
262
370
|
|
263
371
|
text-align: center;
|
1
ご指摘ありがとうございます。<code>で囲みました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,12 @@
|
|
6
6
|
|
7
7
|
---html---
|
8
8
|
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```ここに言語を入力
|
14
|
+
|
9
15
|
<div class ="background">
|
10
16
|
|
11
17
|
<ul class="menu">
|
@@ -94,10 +100,16 @@
|
|
94
100
|
|
95
101
|
</div>
|
96
102
|
|
103
|
+
```
|
104
|
+
|
97
105
|
|
98
106
|
|
99
107
|
--- CSS --------
|
100
108
|
|
109
|
+
|
110
|
+
|
111
|
+
```ここに言語を入力
|
112
|
+
|
101
113
|
.menu {
|
102
114
|
|
103
115
|
position: relative;
|
@@ -269,3 +281,5 @@
|
|
269
281
|
background: #1d0f0f;
|
270
282
|
|
271
283
|
}
|
284
|
+
|
285
|
+
```
|