質問編集履歴
2
記載内容が不適切だったため修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,17 +18,53 @@
|
|
18
18
|
|
19
19
|
```HTML
|
20
20
|
|
21
|
-
<div id="wrap">
|
21
|
+
<div id="wrapper">
|
22
|
+
|
22
|
-
|
23
|
+
<header>
|
24
|
+
|
25
|
+
<nav>
|
26
|
+
|
27
|
+
</nav>
|
28
|
+
|
29
|
+
</header>
|
30
|
+
|
31
|
+
<div id="contents">
|
32
|
+
|
33
|
+
<div class="flex-wrap">
|
34
|
+
|
35
|
+
<div class="video-content">
|
36
|
+
|
37
|
+
<div class="video-wrap">
|
38
|
+
|
23
|
-
<div id="video-box">
|
39
|
+
<div id="video-box">
|
24
|
-
|
40
|
+
|
25
|
-
<video class="video">
|
41
|
+
<video class="video">
|
26
|
-
|
42
|
+
|
27
|
-
<source src="/ho
|
43
|
+
<source src="https://www9.nhk.or.jp/das/movie/D0002190/D0002190002_00000_V_000.mp4">
|
28
|
-
|
44
|
+
|
29
|
-
</video>
|
45
|
+
</video>
|
30
|
-
|
46
|
+
|
31
|
-
</div>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div class="video-footer">
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="form">
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<footer>
|
66
|
+
|
67
|
+
</footer>
|
32
68
|
|
33
69
|
</div>
|
34
70
|
|
@@ -36,31 +72,159 @@
|
|
36
72
|
|
37
73
|
```CSS
|
38
74
|
|
39
|
-
|
75
|
+
body, html {
|
40
|
-
|
76
|
+
|
41
|
-
height: 100%;
|
77
|
+
height: 100%;
|
78
|
+
|
42
|
-
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
#wrapper {
|
84
|
+
|
43
|
-
width: 100%;
|
85
|
+
width: 100%;
|
86
|
+
|
44
|
-
|
87
|
+
height: 100%;
|
88
|
+
|
89
|
+
margin: 0px auto;
|
90
|
+
|
45
|
-
}
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
header, footer {
|
96
|
+
|
97
|
+
height: 6%;
|
98
|
+
|
99
|
+
color: white;
|
100
|
+
|
101
|
+
position: relative;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
header {
|
108
|
+
|
109
|
+
background-color: #F00;
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
footer {
|
116
|
+
|
117
|
+
background-color: #0F0;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
#contents {
|
124
|
+
|
125
|
+
height: 88%;
|
126
|
+
|
127
|
+
background-color: #000;
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
.flex-wrap {
|
134
|
+
|
135
|
+
display: flex;
|
136
|
+
|
137
|
+
height: 100%;
|
138
|
+
|
139
|
+
position: relative;
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
.video-content {
|
146
|
+
|
147
|
+
width: calc(100% - 350px);
|
148
|
+
|
149
|
+
height: 100%;
|
150
|
+
|
151
|
+
position: relative;
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
.video-wrap {
|
158
|
+
|
159
|
+
position: relative;
|
160
|
+
|
161
|
+
width: 100%;
|
162
|
+
|
163
|
+
height: calc(100% - 70px);
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
|
46
168
|
|
47
169
|
#video-box {
|
48
170
|
|
49
|
-
position: relative;
|
171
|
+
position: relative;
|
50
|
-
|
172
|
+
|
51
|
-
max-height: 100%;
|
173
|
+
max-height: 100%;
|
52
|
-
|
174
|
+
|
53
|
-
max-width: 100%;
|
175
|
+
max-width: 100%;
|
54
|
-
|
176
|
+
|
55
|
-
}
|
177
|
+
}
|
56
|
-
|
178
|
+
|
179
|
+
|
180
|
+
|
57
|
-
.video {
|
181
|
+
#video-box > .video {
|
58
|
-
|
182
|
+
|
59
|
-
position: relative;
|
183
|
+
position: relative;
|
60
|
-
|
184
|
+
|
61
|
-
|
185
|
+
height: 100%;
|
62
|
-
|
186
|
+
|
63
|
-
|
187
|
+
width: 100%;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
.video-footer {
|
194
|
+
|
195
|
+
position: relative;
|
196
|
+
|
197
|
+
bottom: 0;
|
198
|
+
|
199
|
+
width: 100%;
|
200
|
+
|
201
|
+
display: flex;
|
202
|
+
|
203
|
+
height: 70px;
|
204
|
+
|
205
|
+
background-color: #00F;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.form {
|
212
|
+
|
213
|
+
width: 350px;
|
214
|
+
|
215
|
+
overflow: scroll;
|
216
|
+
|
217
|
+
position: absolute;
|
218
|
+
|
219
|
+
right: 0;
|
220
|
+
|
221
|
+
top: 0;
|
222
|
+
|
223
|
+
bottom: 0;
|
224
|
+
|
225
|
+
background-color: white;
|
226
|
+
|
227
|
+
border: 1px solid;
|
64
228
|
|
65
229
|
}
|
66
230
|
|
1
問題点をわかりやすく変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
横幅変更時に、max-heightを指定していても動画の高さが親要素をはみ出します
|
14
14
|
|
15
|
-
下記ソースコードによりウィンドウの高さ変更時に横幅は親要素をはみ出
|
15
|
+
下記ソースコードによりウィンドウの高さ変更時に横幅は親要素をはみ出さず、余白が表示されます
|
16
16
|
|
17
17
|
### 該当のソースコード
|
18
18
|
|