js代码
<script src="zy.media.min.js"></script> <script> //document.documentElement.style.overflow='hidden'; document.body.style.overflow='hidden'; zymedia('video',{autoplay: true}); var screenheight = window.screen.height/2; $("#modelView").width(window.screen.width); $("#modelView").height(window.screen.height); var videoheight = $(".zy_media").height()/2; var padding_top = screenheight-videoheight; $(".playvideo").css({"top":padding_top}); $("#modelView").css({"margin-top":-1*(padding_top+$(".zy_media").height())}); </script>