質問編集履歴
1
ご指摘ありがとうございます。掲載できる限りの情報を追加しました。よろしくお願いいたします。
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,10 +14,26 @@
|
|
14
14
|
|
15
15
|
① background-imageの画像が縦長に表示されてしまう。
|
16
16
|
|
17
|
+
```html
|
18
|
+
|
19
|
+
<div class="top-box">
|
20
|
+
|
21
|
+
<div class="top-p">
|
22
|
+
|
23
|
+
<h1>,,,,,,</h1>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
```
|
30
|
+
|
17
31
|
|
18
32
|
|
19
33
|
```css
|
20
34
|
|
35
|
+
.top-box{
|
36
|
+
|
21
37
|
width: 100vw;
|
22
38
|
|
23
39
|
height: 100vh;
|
@@ -32,27 +48,91 @@
|
|
32
48
|
|
33
49
|
position: relative;
|
34
50
|
|
51
|
+
font-weight: normal;
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
.top-p{
|
56
|
+
|
57
|
+
height:100px;
|
58
|
+
|
59
|
+
width: 90%;
|
60
|
+
|
61
|
+
margin: auto;
|
62
|
+
|
63
|
+
position: absolute;
|
64
|
+
|
65
|
+
top: 0;
|
66
|
+
|
67
|
+
left: 0;
|
68
|
+
|
69
|
+
right: 0;
|
70
|
+
|
71
|
+
bottom: 0;
|
72
|
+
|
73
|
+
color:white;
|
74
|
+
|
75
|
+
text-shadow: 2px 2px 1px black;
|
76
|
+
|
77
|
+
text-align: center;
|
78
|
+
|
79
|
+
}
|
80
|
+
|
35
81
|
```
|
36
82
|
|
37
83
|
|
38
84
|
|
39
85
|
② background-imageの画像が大きく表示されてしまう
|
40
86
|
|
87
|
+
```html
|
88
|
+
|
89
|
+
<div class="top-box2">
|
90
|
+
|
91
|
+
<div class="space">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<div id="container">
|
100
|
+
|
101
|
+
<div class="container-box">
|
102
|
+
|
103
|
+
<h1>,,,</h1>
|
104
|
+
|
105
|
+
<p>,,,</p>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```
|
116
|
+
|
41
117
|
```css
|
42
118
|
|
119
|
+
.top-box2{
|
120
|
+
|
43
|
-
position: relative;
|
121
|
+
position: relative;
|
44
|
-
|
122
|
+
|
45
|
-
background-image: url(../img/DSC_
|
123
|
+
background-image: url(../img/DSC_2690.jpg);
|
46
|
-
|
124
|
+
|
47
|
-
height: 100%;
|
125
|
+
height: 100%;
|
48
|
-
|
126
|
+
|
49
|
-
background-attachment: fixed;
|
127
|
+
background-attachment: fixed;
|
50
|
-
|
128
|
+
|
51
|
-
background-position: center;
|
129
|
+
background-position: center;
|
52
|
-
|
130
|
+
|
53
|
-
background-size: cover;
|
131
|
+
background-size: cover;
|
54
|
-
|
132
|
+
|
55
|
-
background-repeat: no-repeat;
|
133
|
+
background-repeat: no-repeat;
|
134
|
+
|
135
|
+
}
|
56
136
|
|
57
137
|
|
58
138
|
|
@@ -62,6 +142,48 @@
|
|
62
142
|
|
63
143
|
③ ハンバーガーメニューのcolorが反映されない
|
64
144
|
|
145
|
+
```html
|
146
|
+
|
147
|
+
<header>
|
148
|
+
|
149
|
+
<h3><a href="index.html">,,,,,</a></h3>
|
150
|
+
|
151
|
+
<div id="nav_toggle">
|
152
|
+
|
153
|
+
<div>
|
154
|
+
|
155
|
+
<span></span>
|
156
|
+
|
157
|
+
<span></span>
|
158
|
+
|
159
|
+
<span></span>
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<nav>
|
166
|
+
|
167
|
+
<ul>
|
168
|
+
|
169
|
+
<li><a href="index2.html">,,</a></li>
|
170
|
+
|
171
|
+
<li><a href="index3.html">,,,</a></li>
|
172
|
+
|
173
|
+
<li><a href="index4.html">,,,</a></li>
|
174
|
+
|
175
|
+
<li><a href="index5.html">,,,</a></li>
|
176
|
+
|
177
|
+
<li><a href="mailto:">,,,,</a></li>
|
178
|
+
|
179
|
+
</ul>
|
180
|
+
|
181
|
+
</nav>
|
182
|
+
|
183
|
+
</header>
|
184
|
+
|
185
|
+
```
|
186
|
+
|
65
187
|
```CSS
|
66
188
|
|
67
189
|
header nav ul li a{
|