页面三(10月27号)

HTML部分:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/轮播.css"/>
</head>
<body>
<div class="co">
<div class="banner">
<img src="img/banner/1.jpg" >
</div>
<div class="star">
<div class="title">

</div>
<ul> <!-- ul>(li>img+span)*5-->
<li><img src="img/necessary-1.png" alt=""><span>官方应援手灯专区</span></li>
<li><img src="img/necessary-2.gif" alt=""><span>官方应援手幅专区</span></li>
<li><img src="img/necessary-3.png" alt=""><span>签名商品专区</span></li>
<li><img src="img/necessary-4.gif" alt=""><span>官方DVD专区</span></li>
<li><img src="img/special.jpg" alt=""><span></span></li>
</ul>
</div>
<div class="top">
<div class="title">

</div>
<ul>
<li><a href=""><img src="img/top/a/toplist_a01.jpg" alt=""></a>薛之谦</li>
<li><a href=""><img src="img/top/a/toplist_a02.jpg" alt=""></a>iKON</li>
<li><a href=""><img src="img/top/a/toplist_a03.jpg" alt=""></a>鹿晗</li>
<li><a href=""><img src="img/top/a/toplist_a04.jpg" alt=""></a>GOT7</li>
<li><a href=""><img src="img/top/a/toplist_a05.jpg" alt=""></a>EXO</li>
<li><a href=""><img src="img/top/a/toplist_a06.jpg" alt=""></a>ASTRO(韩国)</li>
<li><a href=""><img src="img/top/a/toplist_a07.jpg" alt=""></a>winner</li>
<li><a href=""><img src="img/top/a/toplist_a08.jpg" alt=""></a>BigBang</li>
</ul>
</div>
<div class="list">
<div class="title">

</div>
<!-- ul>(li>img[src=img/pro/$.jpg]+div.right>span.title+span.money+div>span.love+span.num)*9 -->
<ul>
<li>
<img src="img/pro/1.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/2.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/3.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/4.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/5.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/6.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/7.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/8.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
<li>
<img src="img/pro/9.jpg" alt="">
<div class="right">
<span class="title2">[现货包邮]加一联创1more bear 万魔熊 一头</span>
<span class="money">¥50</span>
<div><span class="love"></span>
<span class="num">0</span></div>
</div>
</li>
</ul>
</div>

</div>
</body>
</html>

 

CSS部分:

body{
background-color: #CCCCCC;
}
.co ul{
padding-left: 0px;
}
.co ul li{
display: inline-block;

}
.co{
width: 1000px;
margin: 0px auto;
}
.co .banner img{
width: 1000px;

}
.co .star{
margin-top: 20px;
}
.co .star .title{
background-image: url(../img/zhuxing.png);
background-repeat: no-repeat;
height: 45px;

}
.co .star li{
background-color: white;
vertical-align: bottom;/* 底部对齐 */
margin-left: 10px;

}
.co .star li:last-child{
height: 135px;
margin-left: 0px;
vertical-align: bottom;
margin-left: 30px;
}
.co .star li:last-child img{
height: 136px;
width: 271px;
vertical-align: bottom;
}
.co .star li img{
width: 160px;
height: 90px;

}
.co .star li img:last-child{ /* 最后一个图片*/
height: 135px;

}
.co .star li span{
padding: 10px;

text-align: center;
display: block;
}


.co .top{
margin-top: 20px;
}
.co .top .title{
height: 25px;
background-image: url(../img/shop_title2.png);
background-repeat: no-repeat;
background-position: 0px -57px;
}
.co .top li{
margin: 0px 3px;
width: 115px;
height: 150px;
background-color: #FFFFFF;
text-align: center;

}

.co .top li:first-child{
margin-left: 0;
}
.co .top li:last-child{
margin-right: 0;
}

.co .top img{
width: 115px;


}

.co .list .title{
height: 47px;
background-image: url(../img/shop_title2.png);
background-repeat: no-repeat;
background-position: 0px -102px;
}
.co .list li{
background-color: #FFFFFF;
width: 323px;
margin: 10px 5px;
height: 154px;
display: inline-block;

}
.co .list li:nth-child(3n+1){
margin-left: 0;
}
.co .list li:nth-child(3n){
margin-right: 0;
}
.co .list img{

width: 154px;
height: 154px;
}
.co .list .right{
display: inline-block;
vertical-align: top;

}
.co .list .right span{
display: block;
color: #999;
margin: 10px 5px;
width: 150px;
height: 45px;
overflow: hidden;/* 隐藏 */
}
.co .list .right .title2{
margin-top: 10px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;

}
.co .list .right .money{
color: #DE4767;
}
.co .list .right div{
margin-top: -37px;
}
.co .list .right div span{
display: inline-block;
}
.co .list .right .love{
width: 12px;
height: 12px;
background-image: url(../img/icon/ico.png);
background-position: 0 -74px;
margin-top: 10px;
}
.co .list .right .num{
width: 100px;
vertical-align: top;
margin-top: 3px;
}
/* 尾部 */


上一篇:ΣCO时间:华为联合亚控筑基制造业数字化转型


下一篇:[安卓] 7、页面跳转和Intent简单用法