问题描述
这是负责进度条宽度的部分之一。这是负责进度条滞后的部分之一。但是,当我对数字进行更改时,我不能让栏占据视频的整个空间,如图所示:enter image description here
$(window).on("resize",onResize);
function onResize(){
$(mainFunction.elements.progress).width( $(mainFunction.elements.playerContainer).width() - 223 );
$(mainFunction.elements.progressBackground).width( $(mainFunction.elements.playerContainer).width() - 223 - 40 );
$(mainFunction.elements.progressHidden).width( $(mainFunction.elements.playerContainer).width() - 223 - 40 );
mainFunction.progressBarHeight = $(mainFunction.elements.playerContainer).width() - 223 - 40;
$(mainFunction.elements.progressOver).css("width",String( (mainFunction.progressBarHeight / $(mainFunction.elements.mediaVideo)[0].duration) * $(mainFunction.elements.mediaVideo)[0].currentTime ));
}
onResize();
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)