当前第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 前端怎么连接数据库?
Html注释有何作用
Html如何实现点击链接打开一个新窗口
Html怎样将表单居中
Html是啥
json解析是什么?
eclipse怎么写Html
Html中如何调用javascript文件
Html怎么去掉元素的边框
Html怎么隐藏文字
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » HTML如何设置video为不透明背景