Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:代码写了这么多, 没一点感想吗?应该写点总结
_second_hand.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>二手交易区</title>
<link rel="stylesheet" href="../../../static/css/_second_hand.css">
</head>
<body>
<div class="title">
<span>二手交易</span>
</div>
<div class="content">
<div class="content-title">
<span>抢好货</span>
<span>0低价.便捷.安全.快速</span>
</div>
<div class="sort">
<span>热门分类</span>
<ul>
<li><a href="">美女写真</a></li>
<li><a href="">日本美女</a></li>
<li><a href="">美国美女</a></li>
<li><a href="">国内美女</a></li>
<li><a href="">AV美女</a></li>
</ul>
</div>
<div class="goods">
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
<div class="good">
<a class="good-img" href="">
<img src="../../../static/images/shop/shop3.jpg" alt="">
</a>
<p class="introduce">美女性感写真海报墙艺术装饰画贴画涂1</p>
<div>
<span class="price">$333</span>
<span class="tag">美女</span>
</div>
</div>
</div>
<div class="ad">
<div class="ad-4">
<a href=""><img src="../../../static/images/ad/1.png" alt=""></a>
<a href=""><img src="../../../static/images/ad/2.png" alt=""></a>
<a href=""><img src="../../../static/images/ad/3.png" alt=""></a>
<a href=""><img src="../../../static/images/ad/4.png" alt=""></a>
</div>
<a href="">
<img src="../../../static/images/ad/image.png" alt="">
</a>
<a href="">
<img src="../../../static/images/ad/ad2.jpg" alt="">
</a>
</div>
</div>
</body>
</html>
_second_hand.css
@import "reset.css";
@import "_title.css";
body {
background-color: #cccccc;
}
li {
list-style-type: none;
}
.content {
width: 1200px;
background-color: #fff;
margin: 20px auto 0;
padding: 5px 10px 5px 10px;
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.content:hover {
box-shadow:0px 0px 10px #000;
}
.content .content-title {
height: 40px;
border-bottom: 1px solid #cccccc;
}
.content .content-title span:first-child {
font-size: 20px;
color: RGB(97, 105, 129);
}
.content .content-title span:nth-child(2) {
color: red;
margin-left: 20px;
}
.content > .sort {
height: 30px;
position: relative;
}
.content > .sort > span {
font-size: 20px;
color: red;
}
.content > .sort > ul {
width: 400px;
height: 25px;
position: absolute;
top: 0;
left: 105px;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.content > .sort > ul > li > a {
color: RGB(135, 136, 139);
}
.content > .sort > ul > li > a:hover {
color: red;
}
.content .goods {
width: 720px;
margin-left: 5px;
display: flex;
flex-wrap: wrap;
margin-top: 25px;
justify-content: space-between;
}
.content .goods .good {
width: 170px;
height: 220px;
}
.content .goods .good .good-img {
width: 170px;
height: 120px;
}
.content .goods .good .good-img > img {
width: 170px;
height: 120px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.content .goods .good .good-img > img:hover {
box-shadow:0px 0px 10px #000;
}
.content .goods .good .introduce {
width: 170px;
margin-top: 5px;
color: RGB(139, 139, 132);
}
.content .goods .good > div {
margin-top: 5px;
}
.content .goods .good > div > .price {
color: #df5000;
}
.content .goods .good > div > .tag {
display: inline-block;
width: 27px;
height: 18px;
text-align: center;
line-height: 18px;
background-color: RGB(136, 201, 170);
margin-left: 110px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.content .ad {
width: 420px;
position: absolute;
top: 100px;
right: 20px;
}
.content .ad .ad-4 {
height: 280px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.content .ad > .ad-4 img {
width: 200px;
height: 130px;
}
.content .ad > .ad-4 img:hover {
box-shadow:0px 0px 10px #000;
}
_paginate.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>分页</title>
<link rel="stylesheet" href="../../../static/css/_paginate.css">
</head>
<body>
<div class="paginate">
<a href=""><</a>
<a href="">1</a>
<a href="">2</a>
<a href="">3</a>
<a href="">4</a>
<a href="">5</a>
<a href="">6</a>
<a href="">7</a>
<a href="">8</a>
<a href="">9</a>
<a href="">></a>
</div>
</body>
</html>
_paginate.css
@import "reset.css";
.paginate {
width: 400px;
margin: 20px auto;
display: flex;
justify-content: space-between;
}
.paginate > a {
width: 30px;
height: 30px;
border: 1px solid #abcdef;
text-align: center;
line-height: 30px;
}
.paginate > a:hover {
background-color: #abcdef;
color: #ffffff;
}
_comment.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>评论和回复</title>
<link rel="stylesheet" href="../../../static/css/_comment.css">
<link rel="stylesheet" href="../../../static/font/iconfont.css">
</head>
<body>
<div class="comment-contents">
<p>我要评论</p>
<div class="create-comment">
<a class="create-head" href="">
<img class="user-head" src="../../../static/images/user.png" alt="">
</a>
<form action="">
<textarea name="" id="" cols="150" rows="20"></textarea>
<br>
<button class="submit" type="submit">发表评论</button>
</form>
</div>
<p>最新回复</p>
<div class="all-comments">
<div class="comment">
<a class="comment-user-head" href="">
<img class="user-head" src="../../../static/images/user.png" alt="">
</a>
<span class="comment-user-name">用户昵称</span>
<span class="comment-content">留言内容:PHP是世界上最好的语言</span>
<span class="comment-time">2019-12-27 18:05 发表</span>
<span class="replay">
<i class="iconfont icon-dianzan"></i> 回复
</span>
</div>
<div class="comment">
<a class="comment-user-head" href="">
<img class="user-head" src="../../../static/images/user.png" alt="">
</a>
<span class="comment-user-name">用户昵称</span>
<span class="comment-content">留言内容:PHP是世界上最好的语言</span>
<span class="comment-time">2019-12-27 18:05 发表</span>
<span class="replay">
<i class="iconfont icon-dianzan"></i> 回复
</span>
</div>
<div class="comment">
<a class="comment-user-head" href="">
<img class="user-head" src="../../../static/images/user.png" alt="">
</a>
<span class="comment-user-name">用户昵称</span>
<span class="comment-content">留言内容:PHP是世界上最好的语言</span>
<span class="comment-time">2019-12-27 18:05 发表</span>
<span class="replay">
<i class="iconfont icon-dianzan"></i> 回复
</span>
</div>
</div>
</div>
</body>
</html>
_comment.css
@import "reset.css";
.comment-contents {
width: 1200px;
border-top: 1px solid #cccccc;
margin: 15px auto 0;
}
.comment-contents > p {
margin-top: 20px;
color: RGB(108, 111, 118);
font-weight: 700;
}
.comment-contents > .create-comment {
height: 350px;
margin: 30px 0 0 10px;
position: relative;
}
.comment-contents > .create-comment > .create-head {
display: inline-block;
width: 70px;
height: 70px;
}
.user-head {
width: 70px;
height: 70px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.comment-contents > .create-comment > form {
position: absolute;
top: 0;
left: 80px;
}
.comment-contents > .create-comment > form > .submit {
width: 100px;
height: 40px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
position:absolute;
right: 0;
background-color: RGB(225, 102, 104);
}
.comment-contents > .all-comments {
margin-top: 50px;
}
.comment-contents > .all-comments > .comment {
position: relative;
height: 130px;
}
.comment-contents > .all-comments > .comment > .comment-user-head > img {
margin-top: 10px;
}
.comment-contents > .all-comments > .comment > .comment-user-name {
position: absolute;
top: 0;
left: 90px;
}
.comment-contents > .all-comments > .comment > .comment-content {
position: absolute;
top: 35px;
left: 90px;
}
.comment-contents > .all-comments > .comment > .comment-time {
position: absolute;
top: 70px;
left: 90px;
}
.comment-contents > .all-comments > .comment > .replay {
position: absolute;
top: 70px;
right: 200px;
}
.comment-contents > .all-comments > .comment > .replay > i {
color: red;
}