1、去掉style.css中视频的高度

.video-box{ position:relative; width:100%; height:473px; _clear:both; _display:inline; }

去掉:height:473px;

2、更改JS代码

 //初始化视频容器
      if('{model.fields[video_src]}'!=''){
          initCKPlayer('video-box', '{model.fields[video_src]}', '{config.webpath}scripts/ckplayer/ckplayer.swf');
          $(".video-box").height(473);
    }
//改变大小函数
function winResize() {
    if ('{model.fields[video_src]}'!= '') {
        if ($(".section").width() == 1180) {
            $(".video-box").width(840);
            $(".video-box").height(473);
        } else {
            $(".video-box").width(601);
            $(".video-box").height(338);
        }
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-09-15
  • 2021-10-15
  • 2022-01-27
  • 2021-12-04
猜你喜欢
  • 2021-06-23
  • 2021-11-30
  • 2021-06-07
  • 2021-10-19
  • 2021-11-25
  • 2021-04-23
  • 2021-12-23
相关资源
相似解决方案