html部分
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/list.css"/>
</head>
<body>
<div class="content">
<!-- type 的 容器 -->
<div class="type-container">
<div class="type">
<dl>
<dt>分类</dt>
<dd>
<ul>
<li><a href="">原版</a></li>
<li><a href="">签名版</a></li>
<li><a href="">内地引进版</a></li>
<li><a href="">演唱会DVD/LIVE</a></li>
<li><a href="">限量版</a></li>
<li><a href="">贴纸/文件夹/笔记本</a></li>
</ul>
</dd>
</dl>
<dl>
<dt>公司</dt>
<dd>
<ul>
<li><a href="">MBK Entertainment</a></li>
<li><a href="">环球唱片</a></li>
<li><a href="">艺人工作室</a></li>
<li><a href="">英皇娱乐</a></li>
<li><a href="">Fantagio</a></li>
<li><a href="">乐华娱乐</a></li>
<li><a href="">Woolim</a></li>
<li><a href="">WM Entertainment</a></li>
<li><a href="">相信音乐</a></li>
<li><a href="">TS Entertainment</a></li>
<li><a href="">环球中国</a></li>
<li><a href="">华纳唱片</a></li>
<li><a href="">天娱传媒</a></li>
<li><a href="">LOEN Entertainment</a></li>
</ul>
</dd>
</dl>
</div>
</div>
<!-- -->
<div class="list">
<!-- ul>(li>a>img+span.title+div>span.money+img+span.num)*15 -->
<ul>
<li><a href="">
<img src="img/pro/2.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/3.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/5.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/1.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女</span>
<div>
<span class="money">¥125</span>
<span class="love"></span>
<span class="num">368865</span>
</div>
</a></li>
</ul>
</div>
</div>
</body>
</html>
CSS部分
.content{
background-color: #CCCCCC;
}
.content .type-container{
background-color: white;
}
.content .type{
border: 1px solid #CCC;
width: 1200px;
height: 200px;
margin: 20px auto;
/* padding:上下 左右 */
padding: 5px 20px;
}
.content .type dl{
position: relative;
/* border-bottom: 1px dotted #ccc; */
}
.content .type dl:first-child{
/* position: relative; */
padding-bottom: 5px;
border-bottom: 1px dotted #ccc;
}
.content .type dt{
font-size: 20px;
font-weight: bolder;
}
.content .type dd{
font-size: 16px;
color: #666;
position: absolute;
top:-20px;
line-height: 40px;
}
.content .type dd ul li{
display: inline-table;
width: 160px;
}
.content .type dd ul li a{
text-decoration: none;
color: #333333;
}
.content .list{
width: 1200px;
margin: 0 auto;
}
.content .list ul{
padding-left: 0;
}
.content .list ul li{
width: 200px;
height: ;
display: inline-table;
background-color: white;
margin: 10px;
padding: 10px;
}
.content .list ul li:nth-child(5n+1){
margin-left: 0;
}
.content .list ul li:nth-child(5n){
margin-right: 0;
}
.content .list img{
width: 194px;
}
.content .list .title{
display: block;
}
.content .list div{
text-align: center;
}
.content .list div .money{
color: #DE4767;
}
.content .list div .love{
height: 20px;
width: 12px;
display: inline-block;
background-image: url(../img/icon/ico.png);
background-repeat: no-repeat;
background-position: 0px -70px;
}
.content .list div .love:hover{
background-position: -12px -70px;
}
.content .list div .num{
color: #999;
}
.content .list div .money{
color: #666666;
}