File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 10
10
<!--style="position:fixed;width:100%;height:25%" style="background:#EEEEEE;"style="background:url(https://api.uomg.com/api/rand.img3?_t=)"-->
11
11
12
12
< div style ="text-align:center;width:100%;background:rgb(0, 0, 0); ">
13
- < video id ="video " controls style ="width:90% ; " v-on:click ="playvideo(detail_items[0]) " v-bind:poster ="video_bgimg || detail_items[0] && detail_items[0].vod_pic "> </ video >
13
+ < video id ="video " controls style ="height:100%;width:auto ; " v-on:click ="playvideo(detail_items[0]) " v-bind:poster ="video_bgimg || detail_items[0] && detail_items[0].vod_pic "> </ video >
14
14
</ div >
15
15
16
16
< div style ="width:100%;background:rgb(0, 0, 0); ">
Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ var vm = new Vue({
177
177
console . log ( this . videoWidth , this . videoHeight ) ;
178
178
if ( this . videoWidth > this . videoHeight ) {
179
179
this . style . width = "100%" ;
180
+ this . style . height = "auto" ;
180
181
}
181
182
else {
182
- this . style . width = "80%" ;
183
+ this . style . width = "auto" ;
184
+ this . style . height = "100%" ;
183
185
}
184
186
} ) ;
185
187
} ) ;
@@ -190,9 +192,11 @@ var vm = new Vue({
190
192
console . log ( this . videoWidth , this . videoHeight ) ;
191
193
if ( this . videoWidth > this . videoHeight ) {
192
194
this . style . width = "100%" ;
195
+ this . style . height = "auto" ;
193
196
}
194
197
else {
195
- this . style . width = "80%" ;
198
+ this . style . width = "auto" ;
199
+ this . style . height = "100%" ;
196
200
}
197
201
} ) ;
198
202
}
You can’t perform that action at this time.
0 commit comments