极简基础版
这个模板最简单,只包含核心的文本和样式,适合作为临时占位页面。

(图片来源网络,侵删)
特点:
- 纯色背景
- 居中文本
- 无动画效果
- 代码精简
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">敬请期待 - [您的网站名称]</title>
<style>
/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f0f2f5;
color: #333;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.container {
padding: 20px;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #1a1a1a;
}
p {
font-size: 1.2rem;
color: #666;
line-height: 1.6;
}
</style>
</head>
<body>
<div class="container">
<h1>敬请期待</h1>
<p>我们正在努力准备中,很快就会与您见面!</p>
</div>
</body>
</html>
现代简约版
这个版本在基础版上增加了一些设计元素和动画,显得更现代和专业。
特点:
- 渐变背景
- 精美的字体
- 脉动动画效果
- 响应式设计
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">敬请期待 - [您的网站名称]</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
overflow: hidden;
}
.content {
z-index: 2;
position: relative;
}
h1 {
font-size: clamp(2.5rem, 8vw, 4rem);
font-weight: 700;
margin-bottom: 1.5rem;
letter-spacing: 2px;
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.subtitle {
font-size: 1.2rem;
font-weight: 300;
opacity: 0.9;
max-width: 600px;
margin: 0 auto 2.5rem;
line-height: 1.6;
}
/* 脉动动画 */
.pulse {
display: inline-block;
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 50%;
animation: pulse 1.5s infinite ease-in-out;
}
.pulse:nth-child(2) {
animation-delay: 0.2s;
margin: 0 10px;
}
.pulse:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes pulse {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
}
/* 背景装饰 */
.bg-bubble {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
animation: float 15s infinite ease-in-out;
}
.bg-bubble:nth-child(1) {
width: 80px;
height: 80px;
left: 10%;
animation-delay: 0s;
}
.bg-bubble:nth-child(2) {
width: 120px;
height: 120px;
left: 20%;
animation-delay: 2s;
}
.bg-bubble:nth-child(3) {
width: 60px;
height: 60px;
left: 70%;
animation-delay: 4s;
}
.bg-bubble:nth-child(4) {
width: 100px;
height: 100px;
left: 80%;
animation-delay: 0s;
}
@keyframes float {
0%, 100% {
transform: translateY(0) translateX(0);
}
25% {
transform: translateY(-20px) translateX(10px);
}
50% {
transform: translateY(0) translateX(20px);
}
75% {
transform: translateY(20px) translateX(10px);
}
}
</style>
</head>
<body>
<!-- 背景装饰气泡 -->
<div class="bg-bubble"></div>
<div class="bg-bubble"></div>
<div class="bg-bubble"></div>
<div class="bg-bubble"></div>
<div class="content">
<h1>敬请期待</h1>
<p class="subtitle">精彩内容,即将上线,请保持关注</p>
<div>
<span class="pulse"></span>
<span class="pulse"></span>
<span class="pulse"></span>
</div>
</div>
</body>
</html>
创意动画版
这个版本使用CSS 3D变换和动画,创建了一个更具视觉冲击力的效果。

(图片来源网络,侵删)
特点:
- 3D翻转文字效果
- 动态背景
- 更活泼的视觉体验
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">敬请期待 - [您的网站名称]</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #000;
color: #fff;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
overflow: hidden;
}
.scene {
width: 200px;
height: 200px;
position: relative;
transform-style: preserve-3d;
animation: rotate 10s infinite linear;
}
.cube {
width: 100%;
height: 100%;
position: absolute;
transform-style: preserve-3d;
}
.cube-face {
position: absolute;
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
font-weight: bold;
background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
border: 2px solid rgba(255, 255, 255, 0.5);
opacity: 0.9;
}
.front { transform: rotateY( 0deg) translateZ(100px); }
.right { transform: rotateY( 90deg) translateZ(100px); }
.back { transform: rotateY(180deg) translateZ(100px); }
.left { transform: rotateY(-90deg) translateZ(100px); }
.top { transform: rotateX( 90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }
@keyframes rotate {
from { transform: rotateX(0) rotateY(0); }
to { transform: rotateX(360deg) rotateY(360deg); }
}
.message {
position: absolute;
bottom: 10%;
text-align: center;
font-size: 1.5rem;
letter-spacing: 3px;
animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="scene">
<div class="cube">
<div class="cube-face front">敬请</div>
<div class="cube-face back">期待</div>
<div class="cube-face right">全新</div>
<div class="cube-face left">体验</div>
<div class="cube-face top">即将</div>
<div class="cube-face bottom">上线</div>
</div>
</div>
<div class="message">COMING SOON</div>
</body>
</html>
如何使用这些模板?
- 复制代码:选择您喜欢的模板,将全部代码复制到一个新的文本文件中。
- :
- 将
[您的网站名称]替换成您的实际网站名。 - 修改
<h1>和<p>标签中的文字,使其符合您的场景。 - 在模板二中,您可以通过修改
background: linear-gradient(...)来改变背景渐变色。
- 将
- 保存文件:将文件另存为
index.html。 - 部署:将
index.html文件上传到您的网站服务器根目录,当用户访问您的网站时,就会看到这个“敬请期待”的页面。
进阶建议
- 添加倒计时器:在模板二的基础上,可以加入一个倒计时功能,显示距离上线还有多少天、小时、分钟和秒,这需要结合 JavaScript 来实现。
- 添加邮箱订阅:可以增加一个输入框,让访客留下邮箱,以便在网站上线时通知他们,这需要后端支持(如 Formspree, Netlify Forms 等)或前端 JavaScript + 第三方服务。
- 添加社交媒体链接:在页面底部添加您的社交媒体图标(如微博、微信、Twitter、Instagram 等),方便访户关注您的最新动态。
