HTML&CSS4(10月28号)

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="nav">
<a href="首页.html">首页</a>&gt;<!-- &gt;大于 -->
<a href="轮播.html">专辑</a>&gt;
<span>[独家发售]威威我和覅回复</span>
</div>
<div class="text">

<div class="left">
<img src="./img/pro/7_418x418.jpg" alt="">
<div>
<span class="love"></span>
<span class="num">9999</span>
<img src="" alt="">
</div>
<img src="img/details-i.png" >
</div>
<!-- div.right>div.title{[独家发售]威威我和覅回复}+(div>span.dt+span.money+span.del)+(div>span.dt+span.weight)+(div>span.dt+img)+(div>span.cart+span.buy)+div>img -->

<div class="right">
<div class="title">[独家发售]大张伟2018全新专辑《人间精品》</div>
<div>
<span class="dt">商城价格</span>
<span class="money">¥83.1</span>
<span class="del">¥83.1</span>
</div>
<hr><!-- 下划线 -->
<div><span class="dt">重量</span><span class="weight">0.33kg</span></div>
<div><span class="dt">数量</span><img src="img/num.jpg" alt=""></div>
<div class="sp"><span class="cart"></span><span class="buy"></span></div>
<div><img src="./img/zpbz.png" alt=""></div>
</div>
</div>
<div class="img">
<img src="img/tuangou20180126.jpg" >
</div>
<div class="wei">
<img src="img/footer_v180123.png" >
</div>
</div>
</body>
</html>

 

CSS部分:

.co{
width: 1300px;
margin: 0 auto;
}
.co .nav{
margin: 15px 0;
}
.co .nav a{
text-decoration: none;
color: #333333;
margin-right: 5px;
}
.co .nav span{
color: #999999;
}
.co .left{
width: 418px;
display: inline-block;
}
.co .left div{
text-align: right;
}
.co .left .love{
display: inline-block;
width: 12px;
height: 12px;
background-image: url(../img/icon/ico.png);
background-position: 0 -73px;
margin-right: 5px;
}
.co .left div .num{
color: #999999;
}

.co .right{

display: inline-block;
vertical-align: top;/* 顶部对齐 */
margin-left: 30px;
width: 540px;
}
.co .right .text{
font-weight: bold;
}
.co .right .dt{
color: #999999;
width: 80px;
display: inline-block;
}
.co .right .money{
color: #DE4767;
font-size: 28px;
font-weight: bolder;
}
.co .right .del{
text-decoration: line-through;/* 设置删除线 */
color: #999999;
}
.co .right div{
line-height: 50px;/* 行高 */

}
.co .right .sp{
margin-top: 110px;
}
.co .right .cart{
display: inline-block;
width: 181px;
height: 62px;
background-image: url(../img/detail_btn_v1_04.png);
background-position: 0 0;
}
.co .right .buy{
display: inline-block;
width: 181px;
height: 62px;
background-image: url(../img/detail_btn_v1_04.png);
background-position: 0 -61px;
}
/* 尾部 */
.wei{
background-color: white;
margin: 0 auto;
width: 980px;
}

 

上一篇:MySQL 学习笔记(2021.10.26~28)


下一篇:尝试运行ASP.NET 5 Docker容器的异常