1、现在我想完成一个视频居中的样式,如何写
2、样式代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>一个简单的视频提速网页</title>
</head>
<style>
.header {
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
video {
margin-top: 50px;
}
</style>
<body>
<div class="header">
<video src="../mp4/5999e6a2ba70bfa863da83c0c6d0189a.mp4"></video>
</div>
</body>
</html>
这样就能够居中对齐了