html
<video class="fullscreenVideo" id="bgVid" playsinline="" autoplay="" muted="" loop="" width="100%">
<source src="../assets/images/bj.mp4" type="video/mp4">
</video>
css
.videoContainer{
background-color: aqua;
position: fixed;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -100;
}
.videoContainer:before{
content: "";
position: absolute;
width: 100%;
height: 100%;
display: block;
z-index: -1;
top: 0;
left: 0;
background: rgba(25,29,34,.65);
}
效果