盒子模型之商品分类列表页面

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>商品分类列表页面</title>
<link href="css/Page_214_4.css" rel="stylesheet" type="text/css"  />
</head>
<body>
<div id="list">
<ul>
<li><a href="#">酒水、饮料</a></li>
<li><a href="#">进口食品</a></li>
<li><a href="#">休闲零食</a></li>
<li><a href="#">地方特产</a></li>
<li><a href="#">保健、冲调</a></li>
<li><a href="#">粮油、生鲜</a></li>
<li><a href="#">美容洗护</a></li>
<li><a href="#">清洁洗涤</a></li>
<li><a href="#">母婴、纸品</a></li>
<li id="last"><a href="#">家居百货</a></li>
</ul>
</div>
</body>
</html>
//css样式
#list{
border:2px solid #fc9829;
border-radius: 5px;
width: 25%;
margin: 0px auto;
}
ul{
list-style: none;
padding: 0px 10px;
margin: 8px 0px;
}
li{
height: 30px;
line-height: 30px;
border-bottom: 1px dotted #929292;
padding-left: 35px;
}
#last{
border-bottom: none;
}
a{
text-decoration: none;
color: black;
font-size: 10px;
font-weight: normal;
}
li:nth-of-type(1){
background: url(../img1/icon_01.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(2){
background: url(../img1/icon_02.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(3){
background: url(../img1/icon_03.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(4){
background: url(../img1/icon_04.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(5){
background: url(../img1/icon_05.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(6){
background: url(../img1/icon_06.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(7){
background: url(../img1/icon_07.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(8){
background: url(../img1/icon_08.jpg) 0px 0px no-repeat;
background-size:contain;
}


li:nth-of-type(9){
background: url(../img1/icon_09.jpg) 0px 0px no-repeat;
background-size:contain;
}
li:nth-of-type(10){
background: url(../img1/icon_10.jpg) 0px 0px no-repeat;
background-size:contain;
}
a:hover{
color: red;
font-size: 12px;
}
//效果图


猜你喜欢

转载自blog.csdn.net/qq_33151859/article/details/78214221
今日推荐