質問編集履歴
1
修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,6 +44,50 @@
|
|
44
44
|
|
45
45
|
```HTML
|
46
46
|
|
47
|
+
<header class="header">
|
48
|
+
|
49
|
+
<div class="inner header-inner">
|
50
|
+
|
51
|
+
<h1 class="header-ttl">
|
52
|
+
|
53
|
+
<img class="img-logo" src="./image/Logo.png" alt="">
|
54
|
+
|
55
|
+
<p class="logo-text">ユアコーディング</p>
|
56
|
+
|
57
|
+
</h1><!-- /.header-ttl -->
|
58
|
+
|
59
|
+
<button type="button" id="js-humburger" class="button humburger" aria-controls="js-glabal-menu" aria-expanded="false" area-label="メニューを開閉する">
|
60
|
+
|
61
|
+
<span class="humburger__line"></span>
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
</button>
|
66
|
+
|
67
|
+
<nav class="nav">
|
68
|
+
|
69
|
+
<ul class="header-list">
|
70
|
+
|
71
|
+
<li class="header-item"><a href="#">特徴</a></li><!-- /.header-item -->
|
72
|
+
|
73
|
+
<li class="header-item"><a href="#">価格</a></li><!-- /.header-item -->
|
74
|
+
|
75
|
+
<li class="header-item"><a href="#contact-link">問い合わせ</a></li><!-- /.header-item -->
|
76
|
+
|
77
|
+
</ul><!-- /.header-list -->
|
78
|
+
|
79
|
+
</nav><!-- /.nav -->
|
80
|
+
|
81
|
+
<div class="cmn-link header-link">
|
82
|
+
|
83
|
+
<a href="#contact-link">お問い合わせ</a>
|
84
|
+
|
85
|
+
</div><!-- /.cmn-link -->
|
86
|
+
|
87
|
+
</div><!-- /.inner -->
|
88
|
+
|
89
|
+
</header><!-- /.header -->
|
90
|
+
|
47
91
|
<div class="bg-li_white">
|
48
92
|
|
49
93
|
<div class="menu-li_open">
|
@@ -66,6 +110,220 @@
|
|
66
110
|
|
67
111
|
|
68
112
|
|
113
|
+
```CSS
|
114
|
+
|
115
|
+
.header {
|
116
|
+
|
117
|
+
background-color: #FFFFFF;
|
118
|
+
|
119
|
+
height: 94px;
|
120
|
+
|
121
|
+
position: fixed;
|
122
|
+
|
123
|
+
top: 0;
|
124
|
+
|
125
|
+
z-index: 9999;
|
126
|
+
|
127
|
+
width: 100%;
|
128
|
+
|
129
|
+
-webkit-box-shadow: 0px 3px 6px #00000029;
|
130
|
+
|
131
|
+
box-shadow: 0px 3px 6px #00000029;
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
.header .header-inner {
|
138
|
+
|
139
|
+
width: 1022px;
|
140
|
+
|
141
|
+
margin: 0 auto;
|
142
|
+
|
143
|
+
padding: 0 20px;
|
144
|
+
|
145
|
+
display: -webkit-box;
|
146
|
+
|
147
|
+
display: -ms-flexbox;
|
148
|
+
|
149
|
+
display: flex;
|
150
|
+
|
151
|
+
-webkit-box-align: center;
|
152
|
+
|
153
|
+
-ms-flex-align: center;
|
154
|
+
|
155
|
+
align-items: center;
|
156
|
+
|
157
|
+
-webkit-box-pack: justify;
|
158
|
+
|
159
|
+
-ms-flex-pack: justify;
|
160
|
+
|
161
|
+
justify-content: space-between;
|
162
|
+
|
163
|
+
height: 100%;
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
.header .header-inner .header-ttl {
|
170
|
+
|
171
|
+
display: -webkit-box;
|
172
|
+
|
173
|
+
display: -ms-flexbox;
|
174
|
+
|
175
|
+
display: flex;
|
176
|
+
|
177
|
+
-webkit-box-align: center;
|
178
|
+
|
179
|
+
-ms-flex-align: center;
|
180
|
+
|
181
|
+
align-items: center;
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
.header .header-inner .header-ttl .img-logo {
|
188
|
+
|
189
|
+
width: 55px;
|
190
|
+
|
191
|
+
height: 55px;
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
.header .header-inner .header-ttl .logo-text {
|
198
|
+
|
199
|
+
display: block;
|
200
|
+
|
201
|
+
font-size: 2.4rem;
|
202
|
+
|
203
|
+
font-weight: bold;
|
204
|
+
|
205
|
+
margin-left: 16px;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.header .header-inner .humburger__line {
|
212
|
+
|
213
|
+
display: none;
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
@media print, screen and (max-width: 1024px) {
|
220
|
+
|
221
|
+
.header .header-inner .humburger__line {
|
222
|
+
|
223
|
+
position: absolute;
|
224
|
+
|
225
|
+
top: 0;
|
226
|
+
|
227
|
+
right: 0;
|
228
|
+
|
229
|
+
bottom: 0;
|
230
|
+
|
231
|
+
left: 0;
|
232
|
+
|
233
|
+
margin: auto;
|
234
|
+
|
235
|
+
width: 18px;
|
236
|
+
|
237
|
+
height: 2px;
|
238
|
+
|
239
|
+
background-color: #333;
|
240
|
+
|
241
|
+
-webkit-transition: inherit;
|
242
|
+
|
243
|
+
transition: inherit;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
.header .header-inner .humburger__line ::before {
|
248
|
+
|
249
|
+
top: -5px;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
.header .header-inner .humburger__line ::after {
|
254
|
+
|
255
|
+
top: 5px;
|
256
|
+
|
257
|
+
}
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
.header .header-inner .nav .header-list {
|
264
|
+
|
265
|
+
display: -webkit-box;
|
266
|
+
|
267
|
+
display: -ms-flexbox;
|
268
|
+
|
269
|
+
display: flex;
|
270
|
+
|
271
|
+
-webkit-box-pack: justify;
|
272
|
+
|
273
|
+
-ms-flex-pack: justify;
|
274
|
+
|
275
|
+
justify-content: space-between;
|
276
|
+
|
277
|
+
-webkit-box-align: center;
|
278
|
+
|
279
|
+
-ms-flex-align: center;
|
280
|
+
|
281
|
+
align-items: center;
|
282
|
+
|
283
|
+
}
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
.header .header-inner .nav .header-list .header-item > a {
|
288
|
+
|
289
|
+
font-weight: bold;
|
290
|
+
|
291
|
+
}
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
.header .header-inner .nav .header-list .header-item + .header-item {
|
296
|
+
|
297
|
+
padding-left: 46px;
|
298
|
+
|
299
|
+
}
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
.header .header-inner .nav .header-link {
|
304
|
+
|
305
|
+
width: 155px;
|
306
|
+
|
307
|
+
height: 37px;
|
308
|
+
|
309
|
+
}
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
.header .header-inner .nav .header-link > a {
|
314
|
+
|
315
|
+
color: #fff;
|
316
|
+
|
317
|
+
font-size: 1.4rem;
|
318
|
+
|
319
|
+
text-align: center;
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
```
|
324
|
+
|
325
|
+
|
326
|
+
|
69
327
|
```js
|
70
328
|
|
71
329
|
$(function(){
|