質問編集履歴

1

css付けさせていただきました。

2019/08/16 10:22

投稿

sasakihina
sasakihina

スコア6

test CHANGED
File without changes
test CHANGED
@@ -8,142 +8,326 @@
8
8
 
9
9
 
10
10
 
11
- 間違っている部分を教えていただきたいです。```html css (言語ではないですがbootstrap fontawesomeを使っています)
12
-
13
-
11
+ 間違っている部分を教えていただきたいです。
12
+
13
+ ```html
14
+
15
+ ```<!DOCTYPE html>
16
+
17
+ <html lang="ja">
18
+
19
+ <head>
20
+
21
+ <meta charset="utf-8">
22
+
23
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
24
+
25
+ <meta name="viewport" content="width=device-width, initial-scale=1">
26
+
27
+ <title>otokofes19.work</title>
28
+
29
+ <!-- fontawesomeの読み込み -->
30
+
31
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
32
+
33
+ <!-- cssの読み込み -->
34
+
35
+ <link rel="stylesheet" href="stylesheet.css">
36
+
37
+ <!-- BootstrapのCSS読み込み -->
38
+
39
+ <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
40
+
41
+ <!-- jQuery読み込み -->
42
+
43
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
44
+
45
+ <script type="text/javascript" src="otokofes.js"></script>
46
+
47
+
48
+
49
+ <!-- BootstrapのJS読み込み -->
50
+
51
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
52
+
53
+ </head>
54
+
55
+ <body>
56
+
57
+ <nav class="navbar navbar-expand-md">
58
+
59
+
60
+
61
+ <div class="col-md-12 collapse navbar-collapse" id="example">
62
+
63
+ <ul class="navbar-nav">
64
+
65
+ <li>
66
+
67
+ <a class="nav-link" href="https://www.grisoluto.com/entry/otoko-matsuri">ABOUT US</a>
68
+
69
+ </li>
70
+
71
+ <li>
72
+
73
+ <a class="nav-link" href="#">MEMBER</a>
74
+
75
+ </li>
76
+
77
+ <li>
78
+
79
+ <a class="nav-link" href="https://otokofes2019.tumblr.com/">DAIRY PHOTO</a>
80
+
81
+ </li>
82
+
83
+ <li>
84
+
85
+ <a class="nav-link" href="#">LAST YEAR MOVIE</a>
86
+
87
+ </li>
88
+
89
+ <li>
90
+
91
+ <a class="nav-link" href="#">HOT INFORMATION</a>
92
+
93
+ </li>
94
+
95
+ </ul>
96
+
97
+ </div>
98
+
99
+ </nav>
100
+
101
+
102
+
103
+ <div class="top container-fluid">
104
+
105
+ <div class="row float-none">
106
+
107
+ <img src="images/IMG_3005000.jpg" class="img-fluid center-block ">
108
+
109
+ </div>
110
+
111
+ </div>
112
+
113
+
114
+
115
+ <section class="whistlecafe">
116
+
117
+ <img src="images/3whistle..koukoku-01.jpg" class="img-fluid center-block >
118
+
119
+ </section>
120
+
121
+ <footer style="background-color:gray">
122
+
123
+ <div class="copyright">
124
+
125
+ <p>© 2019 - otokofes2019実行委員</p>
126
+
127
+ </div>
128
+
129
+ <div class="sns">
130
+
131
+ <a href="https://note.mu/otokofes19" class="contact">Note</a>
132
+
133
+ <a href="https://www.facebook.com/otokofes2019/" class="fb"><i class="fab fa-facebook-square"></i></a>
134
+
135
+ <a href="https://twitter.com/otokofes19" class="tw"><i class="fab fa-twitter"></i></a>
136
+
137
+ <a href="https://www.instagram.com/otokofes19" class="insta"><i class="fab fa-instagram"></i></a>
138
+
139
+ </div>
140
+
141
+
142
+
143
+ </footer>
144
+
145
+ </body>
146
+
147
+ </html>
148
+
149
+ ```css
14
150
 
15
151
  コード
16
152
 
17
- ```<!DOCTYPE html>
18
-
19
- <html lang="ja">
20
-
21
- <head>
22
-
23
- <meta charset="utf-8">
24
-
25
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
26
-
27
- <meta name="viewport" content="width=device-width, initial-scale=1">
28
-
29
- <title>otokofes19.work</title>
30
-
31
- <!-- fontawesomeの読み込み -->
32
-
33
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
34
-
35
- <!-- cssの読み込み -->
36
-
37
- <link rel="stylesheet" href="stylesheet.css">
38
-
39
- <!-- BootstrapのCSS読み込み -->
40
-
41
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
42
-
43
- <!-- jQuery読み込み -->
44
-
45
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
46
-
47
- <script type="text/javascript" src="otokofes.js"></script>
48
-
49
-
50
-
51
- <!-- BootstrapのJS読み込み -->
52
-
53
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
54
-
55
- </head>
56
-
57
- <body>
58
-
59
- <nav class="navbar navbar-expand-md">
60
-
61
-
62
-
63
- <div class="col-md-12 collapse navbar-collapse" id="example">
64
-
65
- <ul class="navbar-nav">
66
-
67
- <li>
68
-
69
- <a class="nav-link" href="https://www.grisoluto.com/entry/otoko-matsuri">ABOUT US</a>
70
-
71
- </li>
72
-
73
- <li>
74
-
75
- <a class="nav-link" href="#">MEMBER</a>
76
-
77
- </li>
78
-
79
- <li>
80
-
81
- <a class="nav-link" href="https://otokofes2019.tumblr.com/">DAIRY PHOTO</a>
82
-
83
- </li>
84
-
85
- <li>
86
-
87
- <a class="nav-link" href="#">LAST YEAR MOVIE</a>
88
-
89
- </li>
90
-
91
- <li>
92
-
93
- <a class="nav-link" href="#">HOT INFORMATION</a>
94
-
95
- </li>
96
-
97
- </ul>
98
-
99
- </div>
100
-
101
- </nav>
102
-
103
-
104
-
105
- <div class="top container-fluid">
106
-
107
- <div class="row float-none">
108
-
109
- <img src="images/IMG_3005000.jpg" class="img-fluid center-block ">
110
-
111
- </div>
112
-
113
- </div>
114
-
115
-
116
-
117
- <section class="whistlecafe">
118
-
119
- <img src="images/3whistle..koukoku-01.jpg" class="img-fluid center-block >
120
-
121
- </section>
122
-
123
- <footer style="background-color:gray">
124
-
125
- <div class="copyright">
126
-
127
- <p>© 2019 - otokofes2019実行委員</p>
128
-
129
- </div>
130
-
131
- <div class="sns">
132
-
133
- <a href="https://note.mu/otokofes19" class="contact">Note</a>
134
-
135
- <a href="https://www.facebook.com/otokofes2019/" class="fb"><i class="fab fa-facebook-square"></i></a>
136
-
137
- <a href="https://twitter.com/otokofes19" class="tw"><i class="fab fa-twitter"></i></a>
138
-
139
- <a href="https://www.instagram.com/otokofes19" class="insta"><i class="fab fa-instagram"></i></a>
140
-
141
- </div>
142
-
143
-
144
-
145
- </footer>
146
-
147
- </body>
148
-
149
- </html>
153
+ ```@charset "utf-8";
154
+
155
+ .navbar .navbar-nav .nav-link {
156
+
157
+ color: #fff; /* テキストカラー */
158
+
159
+ }
160
+
161
+ .navbar {
162
+
163
+ background-color: #6c757d; /* 背景色 */
164
+
165
+ }
166
+
167
+
168
+
169
+ .whistlecafe img{
170
+
171
+ max-width: 40%;
172
+
173
+ height: auto;
174
+
175
+ }
176
+
177
+
178
+
179
+
180
+
181
+ footer {
182
+
183
+ position: fixed;
184
+
185
+ bottom: 0;
186
+
187
+ display: inline-block;
188
+
189
+ width: 100%;
190
+
191
+ height: 70px;
192
+
193
+ margin: 0;
194
+
195
+ background-color: #9E9E9E;
196
+
197
+ box-shadow: 0 -3px 3px 0 rgba(0,0,0,0.2);
198
+
199
+ }
200
+
201
+ footer .copyright {
202
+
203
+ float: left;
204
+
205
+ width: 60%;
206
+
207
+ }
208
+
209
+ footer .copyright p {
210
+
211
+ font-size: 0.7em;
212
+
213
+ line-height: 70px;
214
+
215
+ padding-left: 10%;
216
+
217
+ letter-spacing: 1px;
218
+
219
+ color: #ffffff;
220
+
221
+ }
222
+
223
+ footer .sns {
224
+
225
+ float: right;
226
+
227
+ width: 40%;
228
+
229
+ }
230
+
231
+ footer .sns a {
232
+
233
+ width: 25%;
234
+
235
+ font-size: 1.2em;
236
+
237
+ font-weight: bold;
238
+
239
+ line-height: 70px;
240
+
241
+ float: left;
242
+
243
+ -webkit-transition: all, 0.3s;
244
+
245
+ transition: all, 0.3s;
246
+
247
+ text-align: center;
248
+
249
+ text-decoration: none;
250
+
251
+ color: white;
252
+
253
+ }
254
+
255
+ footer .sns a:hover {
256
+
257
+ -webkit-transition: all, 0.3s;
258
+
259
+ transition: all, 0.3s;
260
+
261
+ background-color: #222222;
262
+
263
+ }
264
+
265
+ footer .sns .insta {
266
+
267
+ background-color: #e4405f;
268
+
269
+ }
270
+
271
+ footer .sns .fb {
272
+
273
+ background-color: #3b5999;
274
+
275
+ }
276
+
277
+ footer .sns .tw {
278
+
279
+ background-color: #55acee;
280
+
281
+ }
282
+
283
+ footer .sns .contact {
284
+
285
+ background-color:#7BC5AE;
286
+
287
+ }
288
+
289
+ @media (max-width: 480px) {
290
+
291
+ .contents {
292
+
293
+ margin-bottom: 200px;
294
+
295
+ }
296
+
297
+ footer {
298
+
299
+ height: auto;
300
+
301
+ }
302
+
303
+ footer .copyright {
304
+
305
+ width: 100%;
306
+
307
+ }
308
+
309
+ footer .copyright p {
310
+
311
+ padding: 0;
312
+
313
+ text-align: center;
314
+
315
+ }
316
+
317
+ footer .sns {
318
+
319
+ width: 100%;
320
+
321
+ }
322
+
323
+ }
324
+
325
+
326
+
327
+
328
+
329
+ ```
330
+
331
+ コード
332
+
333
+ ```