質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,14 +22,96 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
【追記】
|
26
|
+
|
27
|
+
自分で調べてみて、
|
28
|
+
|
29
|
+
body部にmargin:0;を書いたら、余白はなくなりました。
|
30
|
+
|
31
|
+
.top-wrapper部のbackground-size: cover;だけでは
|
32
|
+
|
33
|
+
どうしてだめなのでしょうか。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```html
|
38
|
+
|
39
|
+
<!DOCTYPE html>
|
40
|
+
|
41
|
+
<html lang="ja">
|
42
|
+
|
43
|
+
<head>
|
44
|
+
|
45
|
+
<meta charset="UTF-8">
|
46
|
+
|
47
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
48
|
+
|
49
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
50
|
+
|
51
|
+
<title>Document</title>
|
52
|
+
|
53
|
+
<link rel="stylesheet" href="style.sheet/style.css">
|
54
|
+
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
|
59
|
+
<div class="top-wrapper">
|
60
|
+
|
61
|
+
<div class="container">
|
62
|
+
|
63
|
+
<header>
|
64
|
+
|
65
|
+
<div class="header-left">
|
66
|
+
|
67
|
+
PAS-POL
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div class="header-right">
|
72
|
+
|
73
|
+
<ul>
|
74
|
+
|
75
|
+
<li>TOP</li>
|
76
|
+
|
77
|
+
<li>PRODUCT</li>
|
78
|
+
|
79
|
+
<li>ABOUT</li>
|
80
|
+
|
81
|
+
<li>NEWS</li>
|
82
|
+
|
83
|
+
<li>CONTACT</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</header>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
25
99
|
```css
|
100
|
+
|
101
|
+
body{
|
102
|
+
|
103
|
+
font-family: serif;
|
104
|
+
|
105
|
+
}
|
26
106
|
|
27
107
|
.top-wrapper{
|
28
108
|
|
29
|
-
background-image: url(
|
109
|
+
background-image: url(../image/main_visual_13-0x0.jpg);
|
30
110
|
|
31
111
|
background-size: cover;
|
32
112
|
|
33
113
|
}
|
34
114
|
|
115
|
+
|
116
|
+
|
35
117
|
```
|