質問編集履歴

2

cssを追加しました

2020/01/03 01:25

投稿

TaikiIshida
TaikiIshida

スコア7

test CHANGED
File without changes
test CHANGED
@@ -184,6 +184,216 @@
184
184
 
185
185
  ```
186
186
 
187
+ ```CSS
188
+
189
+ @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');
190
+
191
+
192
+
193
+ html,body {
194
+
195
+ height: 100%;
196
+
197
+ width: 100%;
198
+
199
+ font-family: 'Poppins', sans-serif;
200
+
201
+ color: #222222;
202
+
203
+ }
204
+
205
+
206
+
207
+ navbar {
208
+
209
+ padding: .8rem;
210
+
211
+ }
212
+
213
+
214
+
215
+ .navbar-nav li {
216
+
217
+ padding-right: 20px;
218
+
219
+ }
220
+
221
+
222
+
223
+ .nav-link {
224
+
225
+ font-size: 1.1em !important;
226
+
227
+ }
228
+
229
+
230
+
231
+ .carousel-caption h1 {
232
+
233
+ font-size: 500%;
234
+
235
+ text-transform: uppercase;
236
+
237
+ text-shadow: 1px 1px 15px #000;
238
+
239
+ }
240
+
241
+ .carousel-caption h3 {
242
+
243
+ font-size: 200%;
244
+
245
+ font-weight: 500;
246
+
247
+ text-shadow: 1px 1px 10px #000;
248
+
249
+ padding-bottom: 1rem;
250
+
251
+ }
252
+
253
+
254
+
255
+ /*---Media Queries --*/
256
+
257
+ @media (max-width: 992px) {
258
+
259
+
260
+
261
+ }
262
+
263
+ @media (max-width: 768px) {
264
+
265
+
266
+
267
+ }
268
+
269
+ @media (max-width: 576px) {
270
+
271
+
272
+
273
+ }
274
+
275
+
276
+
277
+
278
+
279
+ /*---Firefox Bug Fix --*/
280
+
281
+ .carousel-item {
282
+
283
+ transition: -webkit-transform 0.5s ease;
284
+
285
+ transition: transform 0.5s ease;
286
+
287
+ transition: transform 0.5s ease, -webkit-transform 0.5s ease;
288
+
289
+ -webkit-backface-visibility: visible;
290
+
291
+ backface-visibility: visible;
292
+
293
+ }
294
+
295
+ /*--- Fixed Background Image --*/
296
+
297
+ figure {
298
+
299
+ position: relative;
300
+
301
+ width: 100%;
302
+
303
+ height: 60%;
304
+
305
+ margin: 0!important;
306
+
307
+ }
308
+
309
+ .fixed-wrap {
310
+
311
+ clip: rect(0, auto, auto, 0);
312
+
313
+ position: absolute;
314
+
315
+ top: 0;
316
+
317
+ left: 0;
318
+
319
+ width: 100%;
320
+
321
+ height: 100%;
322
+
323
+ }
324
+
325
+ #fixed {
326
+
327
+ background-image: url('img/mac.png');
328
+
329
+ position: fixed;
330
+
331
+ display: block;
332
+
333
+ top: 0;
334
+
335
+ left: 0;
336
+
337
+ width: 100%;
338
+
339
+ height: 100%;
340
+
341
+ background-size: cover;
342
+
343
+ background-position: center center;
344
+
345
+ -webkit-transform: translateZ(0);
346
+
347
+ transform: translateZ(0);
348
+
349
+ will-change: transform;
350
+
351
+ }
352
+
353
+ /*--- Bootstrap Padding Fix --*/
354
+
355
+ [class*="col-"] {
356
+
357
+ padding: 1rem;
358
+
359
+ }
360
+
361
+
362
+
363
+ /*
364
+
365
+ Extra small (xs) devices (portrait phones, less than 576px)
366
+
367
+ No media query since this is the default in Bootstrap
368
+
369
+
370
+
371
+ Small (sm) devices (landscape phones, 576px and up)
372
+
373
+ @media (min-width: 576px) { ... }
374
+
375
+
376
+
377
+ Medium (md) devices (tablets, 768px and up)
378
+
379
+ @media (min-width: 768px) { ... }
380
+
381
+
382
+
383
+ Large (lg) devices (desktops, 992px and up)
384
+
385
+ @media (min-width: 992px) { ... }
386
+
387
+
388
+
389
+ Extra (xl) large devices (large desktops, 1200px and up)
390
+
391
+ @media (min-width: 1200px) { ... }
392
+
393
+ */
394
+
395
+ ```
396
+
187
397
 
188
398
 
189
399
  ちなみにCSSでbtnの色を変更することはできるのですが、やはりhoverは効きません。

1

headの読み込み部分を追加しました

2020/01/03 01:25

投稿

TaikiIshida
TaikiIshida

スコア7

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,111 @@
12
12
 
13
13
  ```html
14
14
 
15
+ <!DOCTYPE html>
16
+
17
+ <html lang="en">
18
+
19
+ <head>
20
+
21
+ <meta charset="utf-8" />
22
+
23
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
24
+
25
+ <title>Complete Bootstrap 4 Website Layout</title>
26
+
27
+ <link
28
+
29
+ rel="stylesheet"
30
+
31
+ href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
32
+
33
+ />
34
+
35
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
36
+
37
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
38
+
39
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
40
+
41
+ <script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
42
+
43
+ <link href="style.css" rel="stylesheet" />
44
+
45
+ </head>
46
+
47
+ <body>
48
+
49
+ <!-- Navigation -->
50
+
51
+ <nav class="navbar navbar-expand-md navbar-light bg-light sticky-top">
52
+
53
+ <div class="container-fluid">
54
+
55
+ <a href="#" class="navbar-brand"> <img src="img/logo.png"/></a>
56
+
57
+
58
+
59
+ <button
60
+
61
+ class="navbar-toggler"
62
+
63
+ type="button"
64
+
65
+ data-toggle="collapse"
66
+
67
+ data-target="#navbarResponsive"
68
+
69
+ >
70
+
71
+ <span class="navbar-toggler-icon"></span>
72
+
73
+ </button>
74
+
75
+ <div class="collapse navbar-collapse" id="navbarResponsive">
76
+
77
+ <ul class="navbar-nav ml-auto">
78
+
79
+ <li class="nav-item active">
80
+
81
+ <a href="#" class="nav-link">Home</a>
82
+
83
+ </li>
84
+
85
+ <li class="nav-item">
86
+
87
+ <a href="#" class="nav-link">About</a>
88
+
89
+ </li>
90
+
91
+ <li class="nav-item">
92
+
93
+ <a href="#" class="nav-link">Services</a>
94
+
95
+ </li>
96
+
97
+ <li class="nav-item">
98
+
99
+ <a href="#" class="nav-link">Team</a>
100
+
101
+ </li>
102
+
103
+ <li class="nav-item">
104
+
105
+ <a href="#" class="nav-link">Connect</a>
106
+
107
+ </li>
108
+
109
+ </ul>
110
+
111
+ </div>
112
+
113
+ </div>
114
+
115
+ </nav>
116
+
117
+
118
+
15
- <!--- Image Slider -->
119
+ <!--- Image Slider -->
16
120
 
17
121
  <div id="slides" class="carousel slide" data-ride="carousel">
18
122
 
@@ -29,6 +133,8 @@
29
133
  <div class="carousel-inner">
30
134
 
31
135
  <div class="carousel-item active">
136
+
137
+
32
138
 
33
139
  <img src="img/background.png" class="w-100">
34
140
 
@@ -56,6 +162,8 @@
56
162
 
57
163
  <div class="carousel-item">
58
164
 
165
+
166
+
59
167
  <img src="img/background2.png" class="w-100" />
60
168
 
61
169
  </div>
@@ -70,6 +178,10 @@
70
178
 
71
179
  </div>
72
180
 
181
+ </body>
182
+
183
+ </html>
184
+
73
185
  ```
74
186
 
75
187