自适应白色卡片404单页HTML源码

自适应白色卡片404单页HTML源码

源码介绍

自适应白色卡片404单页HTML源码,白色的卡片,红色的醒目文字,简约的风格,代码只有一百多行,简单美观,自适应手机,适合做网站404错误页,网站维护页面等

效果预览

图片[1]-自适应白色卡片404单页HTML源码-QQ沐编程

源代码

<!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 rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
            padding: 20px;
        }
        
        .container {
            max-width: 600px;
            padding: 40px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #dc3545;
        }
        
        .error-icon {
            font-size: 5rem;
            color: #dc3545;
            margin-bottom: 20px;
        }
        
        p {
            margin-bottom: 25px;
            font-size: 1.1rem;
        }
        
        .btn {
            display: inline-block;
            background: #007bff;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            background: #0056b3;
            transform: translateY(-2px);
        }
        
        .links {
            margin-top: 30px;
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .links a {
            color: #6c757d;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .links a:hover {
            color: #007bff;
        }
        
        @media (max-width: 576px) {
            .container {
                padding: 30px 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="error-icon">
            <i class="bi bi-exclamation-triangle-fill"></i>
        </div>
        <h1>404 - 页面未找到</h1>
        <p>抱歉,您访问的页面不存在或已被移除。可能是链接错误、页面已被删除或您输入了错误的URL。</p>
        <a href="/" class="btn">返回首页</a>
        
        <div class="links">
            <a href="/help">帮助中心</a>
            <a href="/contact">联系我们</a>
            <a href="/sitemap">网站地图</a>
        </div>
    </div>
</body>
</html>
© 版权声明
THE END
喜欢就支持一下吧
点赞8赞赏 分享