页面二(十月二十五)

html部分:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>专辑</title>
<link rel="stylesheet" type="text/css" href="css/首页.css"/>
</head>
<body>

<div class="co">
<div class="type-co">
<div class="type">
<dl>
<dt>分类</dt>
<dd>
<ul>
<li>原版</li>
<li>签名版</li>
<li>内地引进版</li>
<li>演唱会DVD/LIVE</li>
<li>限量版</li>
<li>贴纸/文件夹/笔记本</li>
</ul>
</dd>
</dl>

<dl>
<dt>公司</dt>
<dd>
<ul>
<li>MBK Entertainment</li>
<li>环球唱片</li>
<li>艺人工作室</li>
<li>英皇娱乐</li>
<li>Fantagio</li>
<li>乐华娱乐</li>
<li>Woolim</li>
<li>相信音乐</li>
<li>TS Entertainment</li>
<li>环球中国</li>
<li>华纳唱片</li>
<li>天娱传媒</li>
<li>LOEN Entertainment</li>
</ul>
</dd>
</dl>
</div>
</div>

<div class="list">
<!-- ul>(li>a>img+span.title+div>span.money+img+span.num)*15 按Tab -->
<ul>
<li><a href="">
<img src="./img/pro/2.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/3.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/4.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/5.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/6.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/7.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/8.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/9.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/1.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/2.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/3.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/4.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/5.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/6.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
<li><a href="">
<img src="./img/pro/6.jpg" alt="">
<span class="title">宇宙少女 迷你五辑《WJ PLEASE》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">78899090</span>
</div>
</a></li>
</ul>
</div>
<div class="wei">
<img src="img/footer_v180123.png" >
</div>
</div>
</body>
</html>

 

CSS部分:

.co{
background-color: #ccc;
}

.co .type-co{
background-color: white;
height: 160px;
}
.co .type{
border: 1px solid #ccc;
width: 1300px;
margin: 20px auto;
padding: 5px 20px;
height: 120px;

}
.co .type dl{
/* display: inline-block; */
position: relative; /* relative 相对定位 absolute 绝对定位*/
}
.co .type dl:first-child{
padding-bottom: 10px;
border-bottom: 1px dotted #ccc; /* dotted 虚线*/

}
.co .type dt{
font-size: 18px;
font-weight: bolder;
}
.co .type dd{
font-size: 13px;
color: #666;
position: absolute; /* 相对定位*/
top: -15px;
line-height: 30px;
}
/* .co .type dd ul{
display: ;
} */
.co .type dd ul li{
display: inline-table;
width: 140px;
}
.co .list{
width: 1200px;
margin: 0px auto;
background-color: white;
}
.co .list a{
text-decoration: none;
}
.co .list ul{
padding-left: 0;

}

.co .list ul li{
width: 160px;
display: inline-table;
background-color: white;
margin: 15px;
padding: 10px;
}

.co .list ul li:nth-child(5n+1){
margin-left: 0;
}
.co .list ul li:nth-child(5n){
margin-right: 0;
}
.co .list img{
width: 160px;
}
.co .list .title{
display: block;
}
.co .list div{
text-align: center;
margin-top: 10px;
}
.co .list .money{
color: #DE4767;
text-decoration: none;
font-size: 12px;



}
.co .list div .love{
display: inline-block;
background-image: url(../img/icon/ico.png);
width: 12px;
height: 12px;

background-repeat: no-repeat;
background-position:0px -71px;
margin-left: 7px;
}
.co .list div .num{
color: #999;
font-size: 12px;
margin-left: 10px;
}
/* 尾部 */
.wei{
background-color: white;
margin: 0px auto;
width: 1300px;
}

上一篇:React Hooks 深入系列


下一篇:wijmo 隐藏滚动条实现滚动