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

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


  • 4
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_33151859

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值