想做一个背景为视频的页面
下面这篇文章很好
- https://css-tricks.com/full-page-background-video-styles/ -https://www.w3schools.com/howto/howto_css_fullscreen_video.asp
<video playsinline autoplay muted loop poster="polina.jpg" id="bgvid">
<source src="polina.webm" type="video/webm">
<source src="polina.mp4" type="video/mp4">
</video>
video {
object-fit: cover;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
}