91
4
看图:
代码:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>页面未找到 - 404错误</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-color: #4361ee;
--secondary-color: #3a0ca3;
--text-color: #2b2d42;
--light-color: #f8f9fa;
--gray-color: #6c757d;
--error-color: #ef233c;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
background-color: var(--light-color);
color: var(--text-color);
line-height: 1.6;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
background-image: radial-gradient(circle at 10% 20%, rgba(234, 249, 249, 0.67) 0.1%, rgba(239, 249, 251, 0.63) 90.1%);
}
.container {
max-width: 800px;
width: 100%;
padding: 40px;
background: white;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
animation: fadeIn 0.6s ease-out;
}
.error-icon {
font-size: 100px;
color: var(--error-color);
margin-bottom: 20px;
animation: bounce 1.5s infinite;
}
h1 {
font-size: 2.5rem;
margin-bottom: 15px;
color: var(--primary-color);
font-weight: 700;
}
h2 {
font-size: 1.5rem;
margin-bottom: 25px;
font-weight: 600;
}
p {
color: var(--gray-color);
margin-bottom: 30px;
font-size: 1.1rem;
}
.search-box {
display: flex;
max-width: 500px;
margin: 0 auto 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
border-radius: 50px;
overflow: hidden;
}
.search-box input {
flex: 1;
padding: 15px 20px;
border: none;
outline: none;
font-size: 1rem;
}
.search-box button {
background: var(--primary-color);
color: white;
border: none;
padding: 0 25px;
cursor: pointer;
transition: all 0.3s ease;
}
.search-box button:hover {
background: var(--secondary-color);
}
.action-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}
.btn {
display: inline-block;
padding: 12px 25px;
background: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 500;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.btn:hover {
background: white;
color: var(--primary-color);
border-color: var(--primary-color);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn-outline {
background: transparent;
color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-outline:hover {
background: var(--primary-color);
color: white;
}
.decoration {
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(67, 97, 238, 0.1);
z-index: -1;
}
.decoration-1 {
top: -50px;
left: -50px;
}
.decoration-2 {
bottom: -50px;
right: -50px;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
@media (max-width: 768px) {
.container {
padding: 30px 20px;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.2rem;
}
.action-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
text-align: center;
}
}
</style>
</head>
<body>
<div class="container">
<div class="decoration decoration-1"></div>
<div class="decoration decoration-2"></div>
<div class="error-icon">
<i class="fas fa-exclamation-circle"></i>
</div>
<h1>404 - 页面未找到</h1>
<h2>Oops! 您访问的页面不存在</h2>
<p>原因:找不到当前访问域名对应的网站,请联系网站管理员。</p>
<div class="action-buttons">
<a href="https://www.onecdn.cc/" class="btn"><i class="fas fa-home"></i> 返回首页</a>
</div>
</div>
</body>
</html>
markup
探索未知的世界,发现更好的自己 ✨邮件:mail@bbs.al
收藏的用户(0)
X
正在加载信息~
广告推荐