fix error
This commit is contained in:
parent
de212853e0
commit
7278d556c3
|
@ -43,6 +43,10 @@
|
||||||
.jp-jplayer{
|
.jp-jplayer{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
overflow: hidden;
|
||||||
|
clip-path: 0 0;
|
||||||
|
box-sizing: content-box;
|
||||||
|
transform: translatez(0);
|
||||||
}
|
}
|
||||||
.jp-type-single{
|
.jp-type-single{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -53,7 +57,17 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
[id^="jp_video_"]{
|
[id^="jp_video_"]{
|
||||||
height: 100%;
|
box-sizing: content-box;
|
||||||
|
position: absolute;
|
||||||
|
top: -100%;
|
||||||
|
bottom: -100%;
|
||||||
|
left: -100%;
|
||||||
|
right: -100%;
|
||||||
|
margin: auto;
|
||||||
|
min-width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
transform: translatez(0);
|
||||||
|
width: auto !important;
|
||||||
}
|
}
|
||||||
.jp-video.hide-ui .jp-jplayer,.jp-video.hide-ui .jp-video-play{
|
.jp-video.hide-ui .jp-jplayer,.jp-video.hide-ui .jp-video-play{
|
||||||
padding-bottom: 0em;
|
padding-bottom: 0em;
|
||||||
|
@ -180,11 +194,16 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
}
|
}
|
||||||
function jplayer_center_video_front(ele){
|
function jplayer_center_video_front(ele){
|
||||||
|
/*
|
||||||
$(ele).css('margin-left',-Math.abs($(ele).parent().width()-$(ele).width())/2);
|
$(ele).css('margin-left',-Math.abs($(ele).parent().width()-$(ele).width())/2);
|
||||||
if($(ele).parents('.w-ba-banner').length>0){
|
if($(ele).parents('.w-ba-banner').length>0){
|
||||||
$(ele).css('margin-top',-Math.abs($(ele).parents('.w-ba-banner').eq(-1).height()-$(ele).height())/2);
|
var p_h = $(ele).parents('.w-ba-banner').eq(-1).height();
|
||||||
|
var h = ele.videoHeight || $(ele).height();
|
||||||
|
$(ele).height()
|
||||||
|
$(ele).css('margin-top',-Math.abs(p_h-h)/2);
|
||||||
}
|
}
|
||||||
$(ele).css('transform','unset');
|
$(ele).css('transform','unset');
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
$('.w-ba-banner video[id^=jp_video_]').each(function(){
|
$('.w-ba-banner video[id^=jp_video_]').each(function(){
|
||||||
|
|
Loading…
Reference in New Issue