
商品页自定义页1.0版本面附带使用说明
AI-摘要
KunKunYu GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
<!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>
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: #f7f7f7;
}
.banner {
background-color: #007bff;
color: white;
padding: 20px;
border-radius: 10px;
width: 80%;
margin-bottom: 20px;
text-align: center;
}
.banner h1 {
margin: 0;
font-size: 24px;
}
.banner p {
margin: 10px 0 0;
font-size: 16px;
}
.product-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 80%;
}
.product {
border: 1px solid #ddd;
padding: 20px;
margin: 15px;
width: 500px;
height: 250px;
display: flex;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.product img.main-image {
width: 250px;
height: 250px;
border-radius: 10px;
}
.product-details {
display: flex;
flex-direction: column;
justify-content: space-between;
padding-left: 20px;
flex-grow: 1;
}
.product .price {
font-size: 20px;
color: #f60;
margin: 10px 0;
}
.product .buy-button {
display: inline-block;
padding: 15px 25px;
background-color: #ff5722;
color: white;
text-decoration: none;
border-radius: 5px;
font-size: 18px;
margin: 10px 0;
transition: background-color 0.3s;
align-self: flex-start;
}
.product .buy-button:hover {
background-color: #e64a19;
}
.product .note {
font-size: 14px;
color: #999;
}
.product .qr-code {
width: 60px;
height: 60px;
transition: transform 0.3s ease;
border-radius: 5px;
align-self: flex-start;
}
.product .qr-code:hover {
transform: scale(2.5);
}
</style>
</head>
<body>
<div class="banner">
<h1>有偿赞助计划 - 淘宝扫码下单</h1>
<p>为了服务器能长期运行下去特此推出有偿赞助计划,感谢大家的支持,店铺都是正品假一赔十。</p>
</div>
<div class="product-container">
<div class="product">
<img src="https://s2.loli.net/2024/05/26/J3sBfeqL7FCKavW.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="https://s2.loli.net/2024/05/26/4pNj8k5ThUgMC2E.jpg="二维码" class="qr-code">
<div class="price">¥99.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
<div class="product">
<img src="main-image2.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="qrcode2.jpg" alt="二维码" class="qr-code">
<div class="price">¥199.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
<div class="product">
<img src="main-image3.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="qrcode3.jpg" alt="二维码" class="qr-code">
<div class="price">¥299.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
<div class="product">
<img src="main-image4.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="qrcode4.jpg" alt="二维码" class="qr-code">
<div class="price">¥399.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
<div class="product">
<img src="main-image5.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="qrcode5.jpg" alt="二维码" class="qr-code">
<div class="price">¥499.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
<div class="product">
<img src="main-image6.jpg" alt="商品主图" class="main-image">
<div class="product-details">
<img src="qrcode6.jpg" alt="二维码" class="qr-code">
<div class="price">¥599.99</div>
<a href="#" class="buy-button">购买</a>
<div class="note">淘宝扫码购买</div>
</div>
</div>
</div>
</body>
</html>
注意替换对应链接
列如:<img src="main-image4.jpg" alt="商品主图" class="main-image">中的main-image4.jpg替换成自己的商品图片链接
<img src="qrcode5.jpg" alt="二维码" class="qr-code">中的qrcode5.jpg换成自己的商品二维码链接
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 李茂杉
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果