商品列表
效果图
代码部分
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="//at.alicdn.com/t/font_3280490_h5yvhuo3zq5.css"
/>
<link rel="stylesheet" href="/0403/1/css/rest.css" />
<link rel="stylesheet" href="/0403/1/css/heard.css" />
<link rel="stylesheet" href="/0403/1/css/footer.css" />
<link rel="stylesheet" href="/0403/1/css/main.css" />
<title>Document</title>
</head>
<body>
<header>
<div class="top">
<div class="iconfont icon-tao"></div>
<a href="" class="iconfont icon-search">寻找宝贝店铺</a>
</div>
</header>
<main>
<div class="lunbo"><img src="/0403/1/images/top.jpg" /></div>
<div class="daohang">
<a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div> </a
><a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div>
</a>
<a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div>
</a>
<a href="">
<div class="itme1">
<img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
</div>
</a>
</div>
<div class="huakuai"></div>
<div class="cnxh"><img src="/0403/1/images/cainixihuan.png" /></div>
<div class="splb">
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
<a href="">
<div class="sp">
<img
src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
/>
<div class="jj">
<span class="biaoti"
>【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
>
<div>
<span class="jg iconfont icon-renminbi_o">6,799</span>
<span class="rs">67人已购买</span>
</div>
</div>
</div>
</a>
</div>
</main>
<footer>
<div class="taobaotubiao">
<a href="" class="iconfont icon-taobao taobao"></a>
</div>
<a href="" class="iconfont icon-gouwuche"
><div class="gouwu">购物车</div></a
>
<a href="" class="iconfont icon-my"><div class="wode">我的淘宝</div></a>
</footer>
</body>
</html>
css代码
main {
width: 100vw;
position: relative;
top: 0.37rem;
}
main .lunbo img {
width: 100%;
height: 100%;
}
main .daohang {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(2, 1fr);
background-color: white;
}
main .daohang img {
width: 0.61rem;
height: 0.48rem;
}
main .daohang div {
display: grid;
grid-template-rows: 2, 1fr;
place-items: center;
}
main .daohang span {
font-size: 0.12rem;
line-height: 15px;
margin-top: 0.04rem;
}
.huakuai {
width: 100vw;
height: 0.2rem;
background-color: white;
}
.cnxh {
width: 100vw;
height: 0.47rem;
text-align: center;
padding-top: 0.12rem;
}
.cnxh img {
width: 1.61rem;
height: 0.19rem;
}
main .splb {
display: grid;
grid-template-columns: repeat(2, 1fr);
padding: 0rem 0.075rem 0.12rem;
grid-template-rows: auto;
gap: 0.09rem;
}
main .sp {
display: grid;
grid-template-rows: 1.71rem 1fr;
font-size: 0.13rem;
border-radius: 0.05rem;
background-color: white;
height: 2.6rem;
}
.jj {
margin-top: 0.12rem;
display: grid;
grid-template-rows: 1fr 0.41rem;
}
main .sp img {
width: 100%;
height: 100%;
border-radius: 0.05rem 0.05rem 0 0;
}
.jg {
color: #ff5500;
font-size: 0.14rem;
}
.rs {
color: #999999;
font-size: 0.12rem;
font-family: "微软雅黑";
}
.jj {
padding: 0 0.09rem 0 0.1rem;
}
main .jj .biaoti {
margin-bottom: 0.15rem;
}