「人生若只如初见」

「人生若只如初见」

正在加载诗词...

简约好看拟人化404单页HML源码

  • kevin 2026年04月26日 10阅读 0评论
  • 这款404单页采用拟人化设计,语言亲切友好。页面提示“哎呀,页面走丢了!可能是它偷偷溜出去玩了”,以幽默文案缓解用户的访问受阻情绪。页面底部设有醒目的“带我回家”按钮,引导用户一键返回首页,交互简洁清晰,整体风格温馨治愈。
    Test

    Html源代码

    <!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://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
        <style>
            :root {
                --primary: #ff6b6b;
                --secondary: #4ecdc4;
                --light: #f7fff7;
            }
            
            body {
                margin: 0;
                padding: 0;
                font-family: 'Comic Neue', cursive, 'Microsoft YaHei', sans-serif;
                background-color: var(--light);
                color: #333;
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
            }
            
            .container {
                text-align: center;
                max-width: 600px;
                padding: 2rem;
            }
            
            .illustration {
                width: 200px;
                height: 200px;
                margin: 0 auto 1.5rem;
                position: relative;
            }
            
            .circle {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                background-color: var(--primary);
                display: flex;
                justify-content: center;
                align-items: center;
                color: white;
                font-size: 5rem;
                box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
            }
            
            h1 {
                font-size: 2.5rem;
                margin-bottom: 1rem;
                color: var(--primary);
            }
            
            p {
                font-size: 1.2rem;
                margin-bottom: 2rem;
                color: #555;
            }
            
            .btn {
                display: inline-block;
                padding: 0.8rem 1.5rem;
                background: var(--secondary);
                color: white;
                text-decoration: none;
                border-radius: 50px;
                font-weight: bold;
                transition: all 0.3s;
                box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
            }
            
            .btn:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
            }
            
            @media (max-width: 768px) {
                .illustration {
                    width: 150px;
                    height: 150px;
                }
                
                h1 {
                    font-size: 2rem;
                }
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="illustration">
                <div class="circle">
                    <i class="fas fa-search"></i>
                </div>
            </div>
            <h1>哎呀,页面走丢了!</h1>
            <p>我们四处寻找,但就是找不到您要访问的页面。<br>可能是它偷偷溜出去玩了。</p>
            <a href="https://www.ilingku.com" class="btn">
                <i class="fas fa-home"></i> 带我回家
            </a>
        </div>
    </body>
    </html>
    0
    打赏

    —— 评论区 ——

    请登录后发表评论
    立即登录 用户注册
    LOGIN