<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
h1{
text-align: center;
}
video{
height: 600px;
width: 100%;
object-fit:cover;
}
</style>
</head>
<body>
<h1>视频背景</h1>
<div class="video" >
<video autoplay loop muted>
<source type="video/webm" src="https://cdn.goodq.top/caches/112a6b90b653709bce52193132ec80b2/aHR0cDovL3d3dy5pZXNhbGhrLmNvbS9xZnktY29udGVudC91cGxvYWRzLzIwMTkvMDUvYjExMDI2OGI0M2IxN2FhNmY3ZjBlYWQ3MjBiODZiODEud2VibQ_p_p100_p_3D_p_p100_p_3D.webm">
</video>
</div>
</body>
</html>
用视频作为背景
最新推荐文章于 2023-12-08 16:14:42 发布