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
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
版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。