其他分享
首页 > 其他分享> > Dom2

Dom2

作者:互联网

HTML部分:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>专辑</title>
<link rel="stylesheet" type="text/css" href="tex2.css"/>
</head>
<body>
<div class="content">
<div class="type-container">
<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>TSEntertainment</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/1.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/2.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/3.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money¥50span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/4.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/5.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/7.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/8.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/9.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/7.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/6.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/5.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/7.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/9.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>
</a></li>
<li><a href="">
<img src="img/pro/3.jpg" alt="">
<span class="title">宇宙少女 迷你无辑《WJPLEASE ?》</span>
<div>
<span class="money">¥50</span>
<span class="love"></span>
<span class="num">79976556</span>
</div>

</a>

</li>

</ul>

</div>
</div>
</body>
</html>

CSS部分:

.content{
background-color: #cccccc;
}
.content .type-container{
background-color: white;
height: 160px;
}
.content .type{/* 居中 */
border: 1px solid #ccc;
width: 1100px;
margin: 20px auto;
padding: 4px 18px;/* 上下 左右 */
height: 121px;
/*
1参数 全部 四边
2参数 上下 左右
3参数 上左 右下
4参数 左上 右上 右下 座下
*/
}
.content .type dl{
position: relative;
}
.content .type dl:first-child{
padding-bottom: 10px;
border-bottom: 1px dotted #ccc;
}
.content .type dt{
font-weight: bolder;
font-size: 17px;
}
.content .type dd{
font-size: 12px;
color: #666;
position: absolute;/* absolute 相对定位 */
top: -15px;
line-height: 30px;
}
.content .type dd ul li{
display: inline-table;
width: 140px;
}
.content .list{
width: 1200px;
margin: 0px auto;
background-color: white;
}
.content .list a{
text-decoration: none;
}
.content .list ul{
padding-left: 0;
}
.content .list ul li{
display: inline-table;
width: 150px;
background-color: #cccccc;
margin: 15px;
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: 160px;
}
.content .list .title{
display: block;
}
.content .list .div{
text-align: center;
margin-top: 10px;
}
.content .list .money{
color: #DE4767;
text-decoration: none;
font-size: 12px;
}
.content .list .div.love{
display: inline-block;
height: 12px;
width: 12px;
background-image: url(./img/icon/ico.png);
background-repeat: no-repeat;
background-position: 0px -71px;
margin-left: 7px;

}
.content .list .div.num{
color: #999;
font-size: 12px;
margin-left: 10px;
}

 

标签:WJPLEASE,迷你,50,content,无辑,Dom2,79976556
来源: https://www.cnblogs.com/L-zy-Zyt/p/15468845.html