質問編集履歴
2
markdownをりようしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -254,7 +254,7 @@
|
|
254
254
|
|
255
255
|
|
256
256
|
|
257
|
-
![イメージ説明](72d9e
|
257
|
+
![イメージ説明](6c72da09d6e384f48f2b5d70a09e650a.png)
|
258
258
|
|
259
259
|
|
260
260
|
|
1
markdownをりようしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,291 +20,241 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
+
```html
|
24
|
+
|
25
|
+
コード
|
26
|
+
|
27
|
+
```<!DOCTYPE html>
|
28
|
+
|
29
|
+
<html>
|
30
|
+
|
31
|
+
<head>
|
32
|
+
|
33
|
+
<meta charset="utf-8">
|
34
|
+
|
35
|
+
<title>Blog</title>
|
36
|
+
|
37
|
+
<meta name="description" content="テキストテキストテキストテキストテキストテキストテキストテキス">
|
38
|
+
|
39
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
40
|
+
|
41
|
+
<link rel="shortcut icon" href="img/favicon.ico">
|
42
|
+
|
43
|
+
<link rel="stylesheet" href="https://unpkg.com/ress/dist/ress.min.css">
|
44
|
+
|
45
|
+
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
|
46
|
+
|
47
|
+
<link rel="stylesheet" href="stylesheet.css">
|
48
|
+
|
49
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1.8.3"></script>
|
50
|
+
|
51
|
+
<script src="script.js"></script>
|
52
|
+
|
53
|
+
</head>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<body>
|
58
|
+
|
59
|
+
<header class="wrapper " id="header">
|
60
|
+
|
61
|
+
<h1 class="title"><a href="#"><img src="https://code-step.com/demo/html/store2/img/logo.svg" alt=""></a></h1>
|
62
|
+
|
63
|
+
<nav id="navi">
|
64
|
+
|
65
|
+
<ul>
|
66
|
+
|
67
|
+
<li><a href="product.html">PRODUCE</a></li>
|
68
|
+
|
69
|
+
<li><a href="about.html">ABOUT</a></li>
|
70
|
+
|
71
|
+
<li><a href="company.html">COMPANY</a></li>
|
72
|
+
|
73
|
+
<li><a href="">CONTACT</a></li>
|
74
|
+
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<a class="header-btn" href="">
|
80
|
+
|
81
|
+
<span></span>
|
82
|
+
|
83
|
+
<span></span>
|
84
|
+
|
85
|
+
</a>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<div id="mask"></div>
|
90
|
+
|
91
|
+
</header>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<main>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
</main>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<footer>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</footer>
|
108
|
+
|
109
|
+
</body>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
```CSS
|
118
|
+
|
119
|
+
コード
|
120
|
+
|
121
|
+
```.wrapper {
|
122
|
+
|
123
|
+
max-width: 1360px;
|
124
|
+
|
125
|
+
padding: 0 40px;
|
126
|
+
|
127
|
+
margin: 0 auto;
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
#header {
|
132
|
+
|
133
|
+
display: flex;
|
134
|
+
|
135
|
+
height: 80px;
|
136
|
+
|
137
|
+
align-items: center;
|
138
|
+
|
139
|
+
justify-content: space-between;
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
.title {
|
144
|
+
|
145
|
+
width:200px;
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
.title a {
|
152
|
+
|
153
|
+
display: block;
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
.header-btn {
|
158
|
+
|
159
|
+
position: relative;
|
160
|
+
|
161
|
+
width:30px;
|
162
|
+
|
163
|
+
height: 30px;
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
.header-btn span {
|
170
|
+
|
171
|
+
background-color: #333;
|
172
|
+
|
173
|
+
width: 30px;
|
174
|
+
|
175
|
+
height: 2px;
|
176
|
+
|
177
|
+
display:block;
|
178
|
+
|
179
|
+
border-radius: 4px;
|
180
|
+
|
181
|
+
position: absolute;
|
182
|
+
|
183
|
+
transition: all 0.5s;
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
.header-btn span:nth-child(1) {
|
190
|
+
|
191
|
+
top:10px;
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
.header-btn span:nth-child(2) {
|
196
|
+
|
197
|
+
bottom:10px;
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
#navi {
|
202
|
+
|
203
|
+
position: fixed;
|
204
|
+
|
205
|
+
left:-300px;
|
206
|
+
|
207
|
+
width:300px;
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
#mask {
|
212
|
+
|
213
|
+
display:none;
|
214
|
+
|
215
|
+
transition: all 0.5s;
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
.open .header-btn span {
|
220
|
+
|
221
|
+
background-color: #fff;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
.open .header-btn span:nth-child(1) {
|
226
|
+
|
227
|
+
-webkit-transform: translateY(4px) rotate(-45deg);
|
228
|
+
|
229
|
+
transform: translateY(4px) rotate(-45deg);
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
.open .header-btn span:nth-child(2) {
|
234
|
+
|
235
|
+
-webkit-transform: translateY(-4px) rotate(45deg);
|
236
|
+
|
237
|
+
transform: translateY(-4px) rotate(45deg);
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
.open #mask {
|
242
|
+
|
243
|
+
display: block;
|
244
|
+
|
245
|
+
position: fixed;
|
246
|
+
|
247
|
+
left:0;
|
248
|
+
|
249
|
+
background: #000;
|
250
|
+
|
251
|
+
}
|
252
|
+
|
23
253
|
### 該当のソースコード
|
24
254
|
|
25
255
|
|
26
256
|
|
27
|
-
|
28
|
-
|
29
|
-
<!DOCTYPE html>
|
30
|
-
|
31
|
-
<html>
|
32
|
-
|
33
|
-
<head>
|
34
|
-
|
35
|
-
<meta charset="utf-8">
|
36
|
-
|
37
|
-
<title>Blog</title>
|
38
|
-
|
39
|
-
<meta name="description" content="テキストテキストテキストテキストテキストテキストテキストテキス">
|
40
|
-
|
41
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
42
|
-
|
43
|
-
<link rel="shortcut icon" href="img/favicon.ico">
|
44
|
-
|
45
|
-
<link rel="stylesheet" href="https://unpkg.com/ress/dist/ress.min.css">
|
46
|
-
|
47
|
-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
|
48
|
-
|
49
|
-
<link rel="stylesheet" href="stylesheet.css">
|
50
|
-
|
51
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js?ver=1.8.3"></script>
|
52
|
-
|
53
|
-
<script src="script.js"></script>
|
54
|
-
|
55
|
-
</head>
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<body>
|
60
|
-
|
61
|
-
<header class="wrapper " id="header">
|
62
|
-
|
63
|
-
<h1 class="title"><a href="#"><img src="https://code-step.com/demo/html/store2/img/logo.svg" alt=""></a></h1>
|
64
|
-
|
65
|
-
<nav id="navi">
|
66
|
-
|
67
|
-
<ul>
|
68
|
-
|
69
|
-
<li><a href="product.html">PRODUCE</a></li>
|
70
|
-
|
71
|
-
<li><a href="about.html">ABOUT</a></li>
|
72
|
-
|
73
|
-
<li><a href="company.html">COMPANY</a></li>
|
74
|
-
|
75
|
-
<li><a href="">CONTACT</a></li>
|
76
|
-
|
77
|
-
</nav>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<a class="header-btn" href="">
|
82
|
-
|
83
|
-
<span></span>
|
84
|
-
|
85
|
-
<span></span>
|
86
|
-
|
87
|
-
</a>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<div id="mask"></div>
|
92
|
-
|
93
|
-
</header>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<main>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
</main>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<footer>
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
</footer>
|
110
|
-
|
111
|
-
</body>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
</html>
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
CSS
|
126
|
-
|
127
|
-
a {
|
128
|
-
|
129
|
-
text-decoration: none;
|
130
|
-
|
131
|
-
color: #333;
|
132
|
-
|
133
|
-
}
|
134
|
-
|
135
|
-
li {
|
136
|
-
|
137
|
-
list-style: none;
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
img {
|
142
|
-
|
143
|
-
max-width: 100%;
|
144
|
-
|
145
|
-
}
|
146
|
-
|
147
|
-
.wrapper {
|
148
|
-
|
149
|
-
max-width: 1360px;
|
150
|
-
|
151
|
-
padding: 0 40px;
|
152
|
-
|
153
|
-
margin: 0 auto;
|
154
|
-
|
155
|
-
}
|
156
|
-
|
157
|
-
#header {
|
158
|
-
|
159
|
-
display: flex;
|
160
|
-
|
161
|
-
height: 80px;
|
162
|
-
|
163
|
-
align-items: center;
|
164
|
-
|
165
|
-
justify-content: space-between;
|
166
|
-
|
167
|
-
}
|
168
|
-
|
169
|
-
.title {
|
170
|
-
|
171
|
-
width:200px;
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
}
|
176
|
-
|
177
|
-
.title a {
|
178
|
-
|
179
|
-
display: block;
|
180
|
-
|
181
|
-
}
|
182
|
-
|
183
|
-
.header-btn {
|
184
|
-
|
185
|
-
position: relative;
|
186
|
-
|
187
|
-
width:30px;
|
188
|
-
|
189
|
-
height: 30px;
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
.header-btn span {
|
196
|
-
|
197
|
-
background-color: #333;
|
198
|
-
|
199
|
-
width: 30px;
|
200
|
-
|
201
|
-
height: 2px;
|
202
|
-
|
203
|
-
display:block;
|
204
|
-
|
205
|
-
border-radius: 4px;
|
206
|
-
|
207
|
-
position: absolute;
|
208
|
-
|
209
|
-
transition: all 0.5s;
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
}
|
214
|
-
|
215
|
-
.header-btn span:nth-child(1) {
|
216
|
-
|
217
|
-
top:10px;
|
218
|
-
|
219
|
-
}
|
220
|
-
|
221
|
-
.header-btn span:nth-child(2) {
|
222
|
-
|
223
|
-
bottom:10px;
|
224
|
-
|
225
|
-
}
|
226
|
-
|
227
|
-
#navi {
|
228
|
-
|
229
|
-
position: fixed;
|
230
|
-
|
231
|
-
left:-300px;
|
232
|
-
|
233
|
-
width:300px;
|
234
|
-
|
235
|
-
}
|
236
|
-
|
237
|
-
#mask {
|
238
|
-
|
239
|
-
display:none;
|
240
|
-
|
241
|
-
transition: all 0.5s;
|
242
|
-
|
243
|
-
}
|
244
|
-
|
245
|
-
.open .header-btn span {
|
246
|
-
|
247
|
-
background-color: #fff;
|
248
|
-
|
249
|
-
}
|
250
|
-
|
251
|
-
.open .header-btn span:nth-child(1) {
|
252
|
-
|
253
|
-
-webkit-transform: translateY(4px) rotate(-45deg);
|
254
|
-
|
255
|
-
transform: translateY(4px) rotate(-45deg);
|
256
|
-
|
257
|
-
}
|
258
|
-
|
259
|
-
.open .header-btn span:nth-child(2) {
|
260
|
-
|
261
|
-
-webkit-transform: translateY(-4px) rotate(45deg);
|
262
|
-
|
263
|
-
transform: translateY(-4px) rotate(45deg);
|
264
|
-
|
265
|
-
}
|
266
|
-
|
267
|
-
.open #mask {
|
268
|
-
|
269
|
-
display: block;
|
270
|
-
|
271
|
-
position: fixed;
|
272
|
-
|
273
|
-
left:0;
|
274
|
-
|
275
|
-
background: #000;
|
276
|
-
|
277
|
-
}
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
js
|
282
|
-
|
283
|
-
console.log(0);
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
257
|
+
![イメージ説明](72d9e6b0c1597358717632f4be9f28dd.png)
|
288
|
-
|
289
|
-
if($('#header').hasClass('open')){
|
290
|
-
|
291
|
-
$('#header').removeClass('open');
|
292
|
-
|
293
|
-
}
|
294
|
-
|
295
|
-
else {
|
296
|
-
|
297
|
-
$('#header').addClass('open');
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
}
|
302
|
-
|
303
|
-
}
|
304
|
-
|
305
|
-
);
|
306
|
-
|
307
|
-
```
|
308
258
|
|
309
259
|
|
310
260
|
|