感觉酷多了,刷一次变一次颜色,提提意见,哪里需要改改 [复制链接]

帖子链接已复制到剪贴板
高启强 (UID: 1731) 3月前

1029 13

https://not.sale

 

@孟先生 @小石不识玉 

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <!-- 视口设置,确保页面在移动设备上正确缩放 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>域名出售-Domain Name List</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
        }
        .information, .container {
            width: 100%;
            margin: auto;
            background-color: #ffffff;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
        }
        .domain-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }
        .domain-list li {
            background-color: #f7f4fc;
            border-bottom: 1px solid #eaeaea;
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }
        .domain-list li:last-child {
            border-bottom: none;
        }
        .domain-list li:before {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, #FF5D4A, #f99157, #fac863, #4FC277, #5fb3b3);
            transform: scaleX(0);
            transition: transform 0.5s ease;
        }
        .domain-list li:hover:before {
            transform: scaleX(1);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .domain-list li {
                padding: 8px;
            }
        }
    </style>
</head>
<body>
    <div class="information">
        <h1>域名出售列表</h1>
        <p>Please feel free to contact me</p>
        <p>请随时与我联系</p>
        <a href="mailto:i@mail.money" class="email">i@mail.money</a>
    </div>
    <div class="container">
        <ul class="domain-list" id="domain-list">
            <!-- 域名列表项 -->
            <li>v.wtf</li>
            <li>not.sale</li>
            <!-- ... 其他域名 -->
            <li>fuzhou.info</li>
        </ul>
    </div>

    <script>
        window.addEventListener('load', function() {
            // 页面加载完成后,为每个列表项添加随机背景色
            const listItems = document.querySelectorAll('#domain-list li');
            listItems.forEach(item => {
                item.style.backgroundColor = getRandomColor();
            });
        });

        function getRandomColor() {
            var letters = '0123456789ABCDEF';
            var color = '#';
            for (var i = 0; i < 6; i++) {
                color += letters[Math.floor(Math.random() * 16)];
            }
            return color;
        }
    </script>
</body>
</html>

强盛集团董事长 集团官网:https://not.sale
已有评论 (13)
提示:您必须 登录 才能查看此内容。
创建新帖
广告推广点击空位自助购买