我自己的理解就是进入html页面之后,video标签设置成全屏(循环,声音),置为最底层。
<!DOCTYPE HTML>
<html>
<style>
*{
margin: 0px;
padding: 0px;
}
video{
position: fixed;
right: 0px;
bottom: 0px;
min-width: 100%;
min-height: 100%;
height: auto;
width: auto;
/*加滤镜*/
/*filter: blur(15px); //背景模糊设置 */
/*-webkit-filter: grayscale(100%);*/
/*filter:grayscale(100%); //背景灰度设置*/
z-index:-11
}
source{
min-width: 100%;
min-height: 100%;
height: auto;
width: auto;
}
</style>
<body>
<div style="background: #00733e;margin: auto;opacity: 80%;height: 600px;width: 800px">
sdfasdfasdfsdfad,可以设置各种样式
</div>
<video autoplay loop muted>
<source src='/js/static/visualResources/instance/storage/assets/media/宣传视频.mp4' type="video/mp4" />
Your browser does not support the video tag.
</video>
</body>
</html>