我在一个宽度为40%的
中有一个
video
。 在HTML中,width =“100%” height =“auto”
会使视频消失。设置特定大小的像素将不适合。留空HTML会导致视频尺寸不正确,并且两侧有黑边。
我尝试了大多数其他帖子中的建议,但似乎无法使其正常工作。
<div id="box"><video id="trialvid" class="video-js vjs-default-skin"
controls preload="auto" width="auto" height="auto" poster="images/reelthumbnail.jpg"
data-setup='{"example_option":true}'>
<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>
</div>