当前第2页 返回上一页
先插入如下代码:
1 | <video src= "../video/2b.mp4" loop= "loop" autoplay= "autoplay" ></video>
|
css修饰如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <style>
body{
margin:0;
}
video{
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
-webkit-filter: grayscale(20%);
}
</style>
|
相关学习推荐:html教程
以上就是HTML如何设置video为不透明背景的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
在Html中white-space是什么
关于Html基本语法和语义写法规则与实例分析
Html怎么插入flash
什么软件可以将pdf转换为Html
h5的video标签操作摄像头
Html怎么使按钮不可用
详解h5新属性audio音频和video视频的控制代码实例
Html如何加载图片
react怎么渲染Html标签
如何在网页地址栏中添加特定图标?
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » HTML如何设置video为不透明背景