css样式
.vid-wrap{ width:100%;background: #000; position:relative; padding-bottom:56.25%; /*需要用padding来维持16:9比例,也就是9除以16*/ height: 0; } .vid-wrap video{ position: absolute; top:0; left: 0; width: 100%; height: 100%
html
<div class="vid-wrap"> <video controls autoplay loop> <source src="" type="video/mp4"> </video> </div>
<div class="vid-wrap"> <video autoplay="autoplay" controls="controls" height="550" width="960"> <source src="xxx.mp4" type="video/mp4"/> </video> </div>
HTML视频剪辑用什么软件自适应不自动播放视频
<div class="vid-wrap"> <video controls="controls" height="550" width="960"> <source src="xxx.mp4" type="video/mp4"/> </video> </div>
html5 video视频自适应手机大小原文链接:https://qipaiyuanmaxiazai.com/5009.html,转载请注明出处~~~
评论0