·设为首页收藏本站📧邮箱修改🎁免费下载专区📒收藏夹👽聊天室📱AI智能体
返回列表 发布新帖

用deepseek写了一个404页面,还真的不错!

76 2

马上注册,免费下载更多dz插件网资源。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
用deepseek写了一个404页面,还真的不错! 西瓜,it618,可可,点微 用deepseek写了一个404页面,还真的不错! 西瓜,it618,可可,点微
代码如下:<!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>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f8f9fa;
            color: #343a40;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            text-align: center;
        }
        .container {
            max-width: 600px;
            padding: 2rem;
        }
        h1 {
            font-size: 5rem;
            margin: 0;
            color: #6c757d;
        }
        h2 {
            font-size: 2rem;
            margin-top: 0;
            margin-bottom: 1rem;
        }
        p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        a {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 0.3rem;
            transition: background-color 0.3s;
        }
        a:hover {
            background-color: #0056b3;
        }
        .emoji {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        .countdown {
            color: #6c757d;
            font-size: 0.9rem;
            margin-top: 1rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="emoji">😕</div>
        <h1>404</h1>
        <h2>页面未找到</h2>
        <p>抱歉,您访问的页面不存在或已被移除。<br>请检查URL是否正确,或返回主页。</p>
        <a href="/">返回首页</a>
        <div class="countdown" id="countdown">5秒后自动返回首页...</div>
    </div>

    <script>
        // 倒计时功能
        let seconds = 5;
        const countdownElement = document.getElementById('countdown');
        const timer = setInterval(function() {
            seconds--;
            countdownElement.textContent = seconds + '秒后自动返回首页...';

            if (seconds <= 0) {
                clearInterval(timer);
                window.location.href = "/"; // 跳转到首页
            }
        }, 1000);
    </script>
</body>
</html>
我要说一句 收起回复

评论2

婷姐Lv.8 发表于 2025-4-6 16:31:40 | 查看全部
可以,还是用的emoji,不是图片
我要说一句 收起回复
拾光Lv.8 发表于 2025-4-6 16:32:25 | 查看全部
收藏一下,还不错!
我要说一句 收起回复

回复

 懒得打字嘛,点击右侧快捷回复【查看最新发布】   【应用商城享更多资源】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

图文热点
关闭

站长推荐上一条 /1 下一条

AI智能体
投诉/建议联系

discuzaddons@vip.qq.com

未经授权禁止转载,复制和建立镜像,
如有违反,按照公告处理!!!
  • 联系QQ客服
  • 添加微信客服

联系DZ插件网微信客服|最近更新|Archiver|手机版|小黑屋|DZ插件网! ( 鄂ICP备20010621号-1 )|网站地图 知道创宇云防御

您的IP:3.149.4.109,GMT+8, 2025-4-29 05:49 , Processed in 0.299340 second(s), 77 queries , Gzip On, Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表