「人生若只如初见」

「人生若只如初见」

正在加载诗词...

黑色迷失在太空404单页HTML源码

  • 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 {
                --space-blue: #0b0d21;
                --star-yellow: #f9d71c;
                --planet-purple: #6a5acd;
            }
            
            body {
                margin: 0;
                padding: 0;
                font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
                background-color: var(--space-blue);
                color: white;
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                overflow: hidden;
                position: relative;
            }
            
            .stars {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-image: 
                    radial-gradient(1px 1px at 20px 30px, white, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 40px 70px, white, rgba(0,0,0,0)),
                    radial-gradient(1px 1px at 90px 40px, white, rgba(0,0,0,0));
                background-repeat: repeat;
                animation: twinkle 5s infinite;
            }
            
            .container {
                text-align: center;
                z-index: 1;
                padding: 2rem;
                max-width: 600px;
            }
            
            .astronaut {
                font-size: 5rem;
                color: white;
                margin-bottom: 1.5rem;
                animation: float 3s ease-in-out infinite;
            }
            
            h1 {
                font-size: 2.5rem;
                margin-bottom: 1rem;
                background: linear-gradient(90deg, #fff, #a8d8ff);
                -webkit-background-clip: text;
                background-clip: text;
                color: transparent;
            }
            
            p {
                font-size: 1.1rem;
                margin-bottom: 2rem;
                color: #a8d8ff;
            }
            
            .btn {
                display: inline-block;
                padding: 0.8rem 1.5rem;
                background: var(--planet-purple);
                color: white;
                text-decoration: none;
                border-radius: 50px;
                font-weight: 500;
                transition: all 0.3s;
                border: 2px solid transparent;
            }
            
            .btn:hover {
                background: transparent;
                border-color: var(--planet-purple);
                transform: translateY(-3px);
            }
            
            @keyframes float {
                0%, 100% { transform: translateY(0); }
                50% { transform: translateY(-20px); }
            }
            
            @keyframes twinkle {
                0% { opacity: 0.8; }
                50% { opacity: 1; }
                100% { opacity: 0.8; }
            }
            
            @media (max-width: 768px) {
                h1 { font-size: 2rem; }
                .astronaut { font-size: 4rem; }
            }
        </style>
    </head>
    <body>
        <div class="stars"></div>
        <div class="container">
            <div class="astronaut">
                <i class="fas fa-user-astronaut"></i>
            </div>
            <h1>页面迷失在太空</h1>
            <p>我们似乎无法在这个星系中找到您要访问的页面。<br>可能是导航坐标错误或页面已被移出轨道。</p>
            <a href="/" class="btn">
                <i class="fas fa-rocket"></i> 返回基地
            </a>
        </div>
    </body>
    </html>
    0
    打赏

    —— 评论区 ——

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