Created
July 24, 2026 01:15
-
-
Save TTlls/3522d49e54b49941b94fe173cab47928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f5f5f5; padding: 20px; } .container { max-width: 800px; margin: 0 auto; background-color: #ffffff; border-radius: 12px; padding: 24px 20px 30px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); } .section-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid #ff6b35; line-height: 1.4; } .product-title { font-size: 24px; font-weight: 700; color: #1a1a1a; text-align: center; margin-bottom: 20px; line-height: 1.5; word-break: break-all; } .sku-section { margin-bottom: 24px; } .sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .sku-item { background-color: #f8f8f8; border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #e8e8e8; transition: all 0.2s; } .sku-item:hover { border-color: #ff6b35; background-color: #fff5f0; } .sku-spec { font-size: 14px; color: #333; font-weight: 500; flex: 1; } .sku-price { font-size: 16px; color: #ff3b30; font-weight: 700; white-space: nowrap; margin-left: 10px; } .audience-section { margin-bottom: 24px; } .audience-img-wrapper { border-radius: 8px; overflow: hidden; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; } .audience-img-wrapper img { width: 100%; height: auto; display: block; } .images-section { margin-bottom: 24px; } .images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .main-img-item { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background-color: #f0f0f0; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; } .main-img-item:hover { border-color: #ff6b35; } .main-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .detail-section { margin-top: 8px; } .detail-img-wrapper { margin-bottom: 10px; border-radius: 8px; overflow: hidden; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; } .detail-img-wrapper img { width: 100%; max-width: 800px; height: auto; display: block; } .lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 1000; justify-content: center; align-items: center; cursor: pointer; padding: 40px; } .lightbox.active { display: flex; } .lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4); } .lightbox .close-btn { position: absolute; top: 20px; right: 30px; font-size: 36px; color: #fff; cursor: pointer; font-weight: 300; transition: transform 0.2s; } .lightbox .close-btn:hover { transform: scale(1.2); } .empty-tip { color: #999; font-size: 14px; padding: 12px 0 8px 12px; } @media (max-width: 480px) { .container { padding: 16px 12px; } .product-title { font-size: 20px; } .sku-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .sku-item { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 4px; } .sku-price { font-size: 15px; } .images-grid { gap: 6px; } .lightbox { padding: 16px; } } </style> </head> <body> <div class="container"> <h1 class="product-title">手撕面包原味巧克力味开袋即食海绵般的口感没有科技与狠活顺丰</h1> <div class="sku-section"> <div class="section-title">规格和价格</div> <div class="sku-grid"> <div class="sku-item"><span class="sku-spec">原味面包:420g*2枚</span><span class="sku-price">69.9元</span></div> </div> </div> <div class="audience-section"> <div class="section-title">受众数据</div> <div class="audience-img-wrapper"> <img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/fa85047a-c8f6-42b8-b051-6bf13ceafe03.png" alt="受众数据" onerror="this.style.display='none'"> </div> </div> <div class="images-section"> <div class="section-title">主图</div> <div class="images-grid"> <div class="main-img-item" onclick="openLightbox(this)"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/9d608ff8-0e48-41e1-b0a3-943a850f474f.png" alt="主图" loading="lazy" onerror="this.style.display='none'"></div><div class="main-img-item" onclick="openLightbox(this)"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/60290f97-2084-4ac4-816f-5e9bca5d0ed5.png" alt="主图" loading="lazy" onerror="this.style.display='none'"></div><div class="main-img-item" onclick="openLightbox(this)"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/32a5b9cd-8a46-4f3b-84eb-91a535e4ce6c.png" alt="主图" loading="lazy" onerror="this.style.display='none'"></div><div class="main-img-item" onclick="openLightbox(this)"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/c2c06673-354e-4de2-a9bb-f7fa1c7afa40.png" alt="主图" loading="lazy" onerror="this.style.display='none'"></div><div class="main-img-item" onclick="openLightbox(this)"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/2a0f4e55-a7f1-41a2-8fb9-819a017e9633.png" alt="主图" loading="lazy" onerror="this.style.display='none'"></div> </div> </div> <div class="detail-section"> <div class="section-title">商品详情</div> <div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/0a1101c2-9e8f-48c9-b87d-bcf4890c9b13.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/7eaa69a7-8fe4-4979-816b-239a1e144913.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/7b877e60-1c7f-450b-9e0b-842a7cf00bc2.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/65de4b33-6ba3-4189-8e5f-87518461966c.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/e187dcc5-a757-4dee-8311-b09ea9ac2deb.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/57958cbb-7a25-4c1e-8e08-eafe9f37d6f9.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/685d9b70-f69f-4176-9c1d-5ae5b51a387b.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/87d7d9e2-5e1a-4330-9b42-ffc858d7e7f4.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/06a60af6-26a1-4cac-b4c3-532854f20335.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/1ff34f65-bea8-4d81-afe2-eb7474c8d650.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/f2b1c81f-fd10-4751-8226-d562c848b222.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/6e529918-b311-4a90-83e8-71cfbf7eef29.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/2726ebc3-75d4-48d0-b815-af596d4fbf5d.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/fbc2fd95-2818-4c05-9f12-0e6bcd43d03a.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/b5288fc9-7fcb-4797-a900-c79001e3680a.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div><div class="detail-img-wrapper"><img src="https://ve-template-0920.oss-cn-shanghai.aliyuncs.com/c190ad4c-9815-4ce6-995c-c9620080f457.png" alt="商品详情图" loading="lazy" onerror="this.style.display='none'"></div> </div> </div> <div class="lightbox" id="lightbox" onclick="closeLightbox()"> <span class="close-btn">×</span> <img id="lightbox-img" src="" alt="预览大图"> </div> <script> function openLightbox(el) { var img = el.querySelector('img'); if (img && img.src) { document.getElementById('lightbox-img').src = img.src; document.getElementById('lightbox').classList.add('active'); document.body.style.overflow = 'hidden'; } } function closeLightbox() { document.getElementById('lightbox').classList.remove('active'); document.body.style.overflow = ''; } document.addEventListener('keydown', function(e) { if (e.key === 'Escape') closeLightbox(); }); document.getElementById('lightbox-img').addEventListener('click', function(e) { e.stopPropagation(); }); </script> </body> </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment