给我做个网站正在建设中的页面要带动画效果
好的,以下是一个简单的“正在建设中”的页面,带有动画效果:
<!DOCTYPE html>
<html>
<head>
<title>网站正在建设中</title>
<style>
body {
background-color: #f1f1f1;
font-family: Arial, sans-serif;
text-align: center;
padding-top: 50px;
}
h1 {
font-size: 48px;
color: #555;
margin-bottom: 50px;
}
#loader {
border: 16px solid #f3f3f3;
border-top: 16px solid #3498db;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
margin: 0 auto;
margin-bottom: 50px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<h1>网站正在建设中</h1>
<div id="loader"></div>
<p>请稍后再访问我们的网站</p>
</body>
</html>
这个页面包括一个标题、一个旋转的加载动画和一条简短的消息。加载动画使用CSS动画来创建,它会无限旋转,直到页面准备好展示内容。
原文地址: https://www.cveoy.top/t/topic/bNt3 著作权归作者所有。请勿转载和采集!