本文最后更新于 2024-04-17,文章内容可能已经过时。

简约404

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>404 Not Found</title>
        <style>
            body {
                background-color: #f5f5f5;
                font-family: Arial, sans-serif;
                margin: 0;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100vh;
            }

            .container {
                text-align: center;
            }

            h1 {
                font-size: 4rem;
                color: #333;
                margin-bottom: 0;
            }

            p {
                font-size: 1.2rem;
                color: #777;
            }

            .home-link {
                display: inline-block;
                margin-top: 2rem;
                padding: 1rem 2rem;
                background-color: #333;
                color: #fff;
                text-decoration: none;
                border-radius: 4px;
                transition: background-color 0.3s;
            }

            .home-link:hover {
                background-color: #111;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <h1>404</h1>
            <p>Oops! 页面找不到了!</p>
            <a href="/" class="home-link">返回首页</a>
        </div>
    </body>
    </html>