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





商品分类列表页面






//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;
}
//效果图

盒子模型之商品分类列表页面_第1张图片

你可能感兴趣的:(html)