【CSS】css video 背景全屏视频
效果
实现
<video autoplay muted loop>
<source src="@/assets/res-kg/video-kg.mp4" type="video/mp4" />
</video>
video {
position: absolute;
top: 0;
left: 0;
object-fit: cover;
width: 100%;
height: 100%;
pointer-events: none;
}