好看的商品展示页面html代码二
ls4.cn • 2024-04-19 00:33 • 279 次点击 • 源码下载
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
}
.product-container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
}
.product-image {
width: 100%;
max-width: 300px;
margin-bottom: 20px;
}
.product-info {
display: flex;
flex-direction: column;
}
.product-title {
font-size: 20px;
font-weight: bold;
margin-bottom: 10px;
}
.product-price {
font-size: 18px;
font-weight: bold;
color: #ff0000;
}
.product-description {
font-size: 16px;
line-height: 1.5;
margin-bottom: 20px;
}
.product-link, .buy-button {
color: #007bff;
text-decoration: none;
display: inline-block;
margin-top: 10px;
}
.product-link, .buy-button {
display: inline-block; /* 使链接并排显示 */
margin-right: 10px; /* 右侧外边距,可根据需要调整 */
}
</style>
</head>
<body>
<div class="product-container">
<img src="[字段:商品主图链接]" alt="商品图片" class="product-image">
<div class="product-info">
<h2 class="product-title">[字段:淘宝标题]</h2>
<span class="product-price">原价: ¥[字段:商品原价] 券后价: ¥[字段:券后价]</span>
<p class="product-description">[字段:朋友圈文案]</p>
[字段:推广文案]
<!-- 添加 target="_blank" 以在新窗口打开链接 -->
<a href="https://www.tmsup.cn/?r=/l/d&nav_wrap=zsz&id=[字段:商品id]" class="product-link" target="_blank">查看商品详情</a>
<a href="http://99.ls33.cn/?cid=dPpNXoGA#/search?keyword=[字段:淘宝商品id]" class="buy-button" target="_blank">查看商品备用</a>
</div>
</div>
扫描二维码,在手机上阅读
推荐阅读: