Videojs v451如果视频标签中的宽度为100%,则脚本会写入:height 150px

时间:2014-04-02 09:22:14

标签: css width

我刚为VIDEO添加了width=100%,脚本写了height=150px

div id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered vjs-controls-enabled vjs-has-started vjs-paused vjs-user-inactive" style="width: 100%; height: 150px; ....

为什么这150px?

<html>
 <head>
 <title>Video.js | HTML5 Video Player</title>
<link href="video-js.css" rel="stylesheet" type="text/css">
 <script src="video.js"></script>

</head>
<body>

 <video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" 
  poster="http://video-js.zencoder.com/oceans-clip.png"
  data-setup="{}">
  <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
  <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
  <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
</video>

 </body>
 </html>

0 个答案:

没有答案