问题描述
找到了该脚本,用于在DIVI中调整视频容器的大小。
它的分辨率为16x9,但似乎破坏了某些模块(图像,作品集等),并且前端未显示任何内容,但是实际的视频在各个项目页面上进行了调整大小,只剩下网站其余模块..
<script language="javascript">var sixteenNine = function(){
var width = $('.video-container').width();
$('.video-container').css('height',width * 0.5625 + 'px')
var height = $('.video-container').height();
// print out values
$('.video-container').height(height);
$('.video-container > .et_pb_video_Box > iframe').height(height);
$('.video-container').width(width);
$('.video-container > .et_pb_video_Box > iframe').width(width);
};
// on page load
jQuery(document).ready(sixteenNine);
// on window resize
jQuery(document).resize(sixteenNine);
</script>
我不是专业人士,但是我猜测它是DIVI解释javascript和jquery的方式,对此有什么帮助吗? Muchos Graci
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)