首页 10.27
作者:互联网
HTML部分:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="index.css"/>
</head>
<body>
<div class="content">
<div class="banner">
<img src="img/banner/1.jpg" >
</div>
<div class="star">
<div class="title">
</div>
<ul>
<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="list.html"><img src="img/top/a/toplist_a01.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a02.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a03.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a04.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a05.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a06.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a07.jpg" alt=""></a></li>
<li><a href="list.html"><img src="img/top/a/toplist_a08.jpg" alt=""></a></li>
</ul>
</div>
<div class="list">
<div class="title">
</div>
<ul>
<li>
<img src="img/pro/1.jpg" alt="">
<div class="right">
<span class="title">1111111</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="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/3.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/4.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/5.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/6.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/7.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/8.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
<li>
<img src="img/pro/9.jpg" alt="">
<div class="right">
<span class="title"></span>
<span class="money"></span>
<div><span class="love"></span><span class="num"></span></div>
</div>
</li>
</ul>
<!-- ul>(li>img[src=img/pro/$.jph]+div.right>span.title+span.money+div>span.love+span.num)*9
-->
</div>
</div>
<div class="tyy">
<img src="img/footer_v180123.png" >
</div>
</body>
</html>
CSS部分:
body{
background-color: #cccccc;
}
.content ul{
padding-left: 0;
}
.content ul li{
display: inline-block;
}
.content{
width: 1000px;
margin: 0 auto;
}
.content .banner img{
width: 1000px;
}
.content .star{
margin-top: 10px;
}
.content .star .title{
background-image: url(img/zhuxing.png);
background-repeat: no-repeat;
height: 50px;
/* background-position: 0px -60px; */
}
.content .star li{
background-color: white;
vertical-align: bottom;/* 水平对齐 */
}
.content .star li:last-child{
height: 135px;
margin-left: 20px;
}
.content .star li:last-child img{
height: 135px;
width: 240px;
}
.content .star li img{
width: 180px;
}
.content .star li span{
text-align: center;
display: block;
padding: 10px;
}
.content .top{
margin-top: 20px;
}
.content .top .title{
height: 30px;
background-image: url(img/shop_title2.png);
background-repeat: no-repeat;
background-position: 0px -60px;
}
.content .top li{
margin: 0 3px;
width: 115px;
background-color: #FFFFFF;
}
.content .top li:first-child{
margin-left: 0;
}
.content .top li:first-child{
margin-right: 0;
}
.content .top img{
width: 115px;
}
.content .list li{
background-color: #FFFFFF;
width: 323px;
margin: 10px 5px;
height: 154px;
}
.content .list li:nth-child(3n+1){
margin-left: 0;
}
.content .list li:nth-child(3n){
margin-right: 0;
}
.content .list img{
height: 154px;
width: 154px;
}
.content .list .right{
display: inline-block;
vertical-align: top;
}
.content .list .right span{
display: block;
color: #999;
margin: 10px 5px;
width: 150px;
}
.content .list .right .title{
margin-top: 30px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.content .list .right .money{
color: #DE4767;
}
.content .list .right div{
margin-top: -3px;
}
.content .list .right div span{
display: inline-block;
}
.content .list .right .love{
display: inline-block;
height: 12px;
width: 12px;
background-image: url(./img/icon/ico.png);
background-position: 0 -74px;
margin-top: 16px;
}
.content .list .right .num{
width: 100px;
vertical-align: top;
}
.tyy{
background-color: #FFFFFF;
height: 60px;
/* width: 800px; */
/* margin-left: 130px; */
}
.tyy img{
width: 1000px;
margin-left: 250px;
margin-top: 10px;
}
标签:10.27,top,li,content,width,首页,background,margin 来源: https://www.cnblogs.com/L-zy-Zyt/p/15473835.html