效果图:
手机图片:
html
<div class="box">
<img src="image/品优购手机.png">
<p>Apple苹果iPhone 6s plus (A1699) 32G 金色 移动联通电信4G手机</p>
<span class="now">¥6088</span>
<span class="prev">¥6988</span>
<div class="bar">
已售<span>80%</span>
<div class="jdt">
<div class="son"></div>
</div>
剩余<span>27</span>件
</div>
<a href="#">立即抢购</a>
</div>
css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.box {
width: 290px;
height: 460px;
}
img {
width: 290px;
height: 300px;
}
.box p {
font-size: 12px;
color: #444;
padding: 0 5px;
}
span {
padding-left: 5px;
}
.box .now {
font-weight: bold;
color: red;
font-size: 20px;
}
.box .prev {
color: #444;
font-size: 12px;
text-decoration: line-through;
}
.box .bar {
font-size: 12px;
color: #777;
padding-left: 5px;
margin-top: 10px;
}
.bar span {
color: #ff0000;
}
.box .jdt {
display: inline-block;
width: 140px;
height: 10px;
border: 1px solid red;
border-radius: 4px;
padding: 1px;
}
.jdt .son {
width: 50%;
height: 100%;
background-color: red;
}
.box a {
display: inline-block;
width: 100%;
height: 60px;
background-color: red;
margin-top: 10px;
font-size: 30px;
color: #fff;
text-decoration: none;
font-weight: 700;
text-align: center;
line-height: 60px;
}