You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.8 KiB

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>随机点名系统</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
overflow: hidden; /* 防止出现滚动条 */
}
video {
height: 100%;
width: 100%;
object-fit: cover;
position: fixed;
left: 0;
top: 0;
z-index: -1; /* 将视频放在最底层 */
}
body {
font-family: Arial, sans-serif;
text-align: center;
position: relative; /* 设置为相对定位,以便绝对定位子元素基于此 */
color: white; /* 设置字体颜色 */
}
h1 {
font-weight: bolder;
font-size: 70px;
background: linear-gradient(45deg, #ff6b6b, #f7c24a);
background-size: 400% 400%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradient-animation 3s ease infinite;
background-clip: text; /* 标准属性 */
color: transparent; /* 标准属性 */
z-index: 1; /* 确保标题在视频上方 */
margin-top: 20%; /* 垂直居中标题 */
}
button {
padding: 10px 20px;
font-size: 45px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #ff6b6b; /* 按钮背景色 */
color: white; /* 按钮文本颜色 */
transition: background-color 0.3s, transform 0.2s; /* 添加动画效果 */
z-index: 1; /* 确保按钮在视频上方 */
margin-top: 20px; /* 按钮与标题之间的间距 */
}
button:hover {
background-color: #f7c24a; /* 悬停时的背景色 */
transform: scale(1.05); /* 悬停时放大效果 */
}
@keyframes gradient-animation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
</style>
</head>
<body>
<video autoplay muted loop src="bandicam 2024-05-03 20-26-57-382.mp4"></video>
<h1>随机点名系统</h1>
<br>
<br>
<button id="startButton">开始</button>
<script>
document.getElementById('startButton').addEventListener('click', function() {
window.location.href = 'index.html'; // 跳转到新的页面
});
</script>
</body>
</html>