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

编程入门 行业动态 更新时间:2024-10-09 06:25:08

盒子模型之<a href=https://www.elefans.com/category/jswz/34/1727078.html style=商品分类列表页面"/>

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

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


更多推荐

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

本文发布于:2024-03-07 22:01:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1719022.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:商品分类   盒子   模型   页面   列表

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!