fix video style error
This commit is contained in:
parent
2aa68ab0f4
commit
e9951de4d4
|
@ -179,7 +179,7 @@
|
|||
function jplayer_center_video_front(ele){
|
||||
$(ele).css('margin-left',($(ele).parent().width()-$(ele).width())/2);
|
||||
if($(ele).parents('.w-ba-banner').length>0){
|
||||
$(ele).css('margin-top',($(ele).parents('.w-ba-banner').eq(-1).height()-$(ele).height())/2);
|
||||
$(ele).css('margin-top',($(ele).height()-$(ele).parents('.w-ba-banner').eq(-1).height())/2);
|
||||
}
|
||||
$(ele).css('transform','unset');
|
||||
}
|
||||
|
@ -360,4 +360,4 @@
|
|||
jplayer_ready_func();
|
||||
})
|
||||
<% end %>
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue