1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
| <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>域名出售列表</title> <style> :root { --primary-color: --secondary-color: --accent-color: --light-bg: --dark-text: --border-radius: 6px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--dark-text); background-color: padding: 20px; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; } header { text-align: center; margin-bottom: 30px; padding: 20px 0; } h1 { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 10px; } .subtitle { color: font-size: 1.1rem; } .search-box { margin-bottom: 25px; display: flex; max-width: 500px; margin: 0 auto 30px; } .search-box input { flex: 1; padding: 12px 15px; border: 1px solid border-radius: var(--border-radius) 0 0 var(--border-radius); font-size: 1rem; } .search-box button { padding: 12px 20px; background: var(--secondary-color); color: white; border: none; border-radius: 0 var(--border-radius) var(--border-radius) 0; cursor: pointer; } .domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; } .domain-card { background: white; border-radius: var(--border-radius); padding: 20px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); transition: transform 0.3s, box-shadow 0.3s; border-top: 3px solid var(--secondary-color); } .domain-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .domain-name { font-weight: 700; color: var(--primary-color); font-size: 1.4rem; margin-bottom: 10px; word-break: break-all; } .domain-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-color); margin: 10px 0; } .domain-description { color: margin-bottom: 15px; font-size: 0.95rem; } .domain-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; } .domain-tag { background: color: var(--secondary-color); padding: 5px 12px; border-radius: 50px; font-size: 0.85rem; } .btn-contact { display: block; width: 100%; background: var(--secondary-color); color: white; border: none; padding: 12px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: background 0.3s; text-align: center; text-decoration: none; } .btn-contact:hover { background: } .contact-section { background: white; border-radius: var(--border-radius); padding: 30px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); margin-bottom: 30px; } .contact-section h2 { text-align: center; margin-bottom: 20px; color: var(--primary-color); } .contact-info { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .contact-item { display: flex; align-items: center; gap: 10px; } footer { text-align: center; padding: 20px; color: font-size: 0.9rem; } @media (max-width: 768px) { .domain-grid { grid-template-columns: 1fr; } .domain-card { padding: 15px; } .domain-name { font-size: 1.2rem; } } </style> </head> <body> <div class="container"> <!-- 页面标题区域 --> <header> <h1>域名出售列表</h1> <p class="subtitle">优质域名资源,直接展示</p> </header> <!-- 搜索框 --> <div class="search-box"> <input type="text" placeholder="搜索域名..." id="domainSearch"> <button id="searchButton">搜索</button> </div> <!-- 域名列表 --> <div class="domain-grid" id="domainList"> <!-- 域名卡片将通过JavaScript动态生成 --> </div> <!-- 联系方式 --> <div class="contact-section"> <h2>联系咨询</h2> <div class="contact-info"> <div class="contact-item"> <i>📧</i> <span>邮箱: contact@example.com</span> </div> <div class="contact-item"> <i>📱</i> <span>电话: 138-0013-8000</span> </div> <div class="contact-item"> <i>💬</i> <span>微信: domain_seller</span> </div> </div> </div> <!-- 页脚 --> <footer> <p>© 2025 域名出售列表 | 所有域名价格可能随时变动,具体以实际交易价格为准</p> </footer> </div>
<script> // 域名数据 - 您可以根据需要修改这些数据 const domains = [ { name: "example.com", price: 50000, tags: ["热门", "商业"], description: "简短易记的商业域名,适合各类企业品牌" }, { name: "techwave.net", price: 12000, tags: ["科技", "网络"], description: "科技与创新完美结合的域名" }, { name: "bestdeal.online", price: 8000, tags: ["电商", "促销"], description: "适合电商和促销活动的优质域名" }, { name: "healthylife.org", price: 15000, tags: ["健康", "生活"], description: "健康生活类网站的完美选择" }, { name: "myapp.dev", price: 6000, tags: ["开发", "应用"], description: "开发者首选,应用类项目理想域名" }, { name: "smartcity.ai", price: 25000, tags: ["AI", "智慧城市"], description: "人工智能与智慧城市领域专属域名" }, { name: "eduplus.cn", price: 9000, tags: ["教育", "中国"], description: "教育行业优选,适合中国市场的域名" }, { name: "fashionista.style", price: 7500, tags: ["时尚", "风格"], description: "时尚达人和品牌的首选域名" } ]; // 初始化页面 document.addEventListener('DOMContentLoaded', function() { const domainList = document.getElementById('domainList'); // 生成域名卡片 domains.forEach(domain => { const domainCard = document.createElement('div'); domainCard.className = 'domain-card'; // 创建标签HTML let tagsHtml = ''; if (domain.tags && domain.tags.length > 0) { tagsHtml = '<div class="domain-tags">'; domain.tags.forEach(tag => { tagsHtml += `<span class="domain-tag">${tag}</span>`; }); tagsHtml += '</div>'; } domainCard.innerHTML = ` <div class="domain-name">${domain.name}</div> <div class="domain-price">¥${domain.price.toLocaleString()}</div> <div class="domain-description">${domain.description}</div> ${tagsHtml} <a href="https://vte.cc" class="btn-contact">立即咨询</a> `; domainList.appendChild(domainCard); }); // 搜索功能 const searchInput = document.getElementById('domainSearch'); const searchButton = document.getElementById('searchButton'); function performSearch() { const searchTerm = searchInput.value.toLowerCase(); const domainCards = document.querySelectorAll('.domain-card'); domainCards.forEach(card => { const domainName = card.querySelector('.domain-name').textContent.toLowerCase(); if (domainName.includes(searchTerm)) { card.style.display = 'block'; } else { card.style.display = 'none'; } }); } searchInput.addEventListener('input', performSearch); searchButton.addEventListener('click', performSearch); }); </script> </body> </html>
|
评论区