Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:总体完成效果不错,继续加油
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/0208.css">
<title>Document</title>
</head>
<body>
<div class="new">
<h3>最新课程</h3>
<a href="">更多>></a>
</div>
<div class="course">
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
<li class="item">
<a href=""><img src="https://img.php.cn/upload/course/000/000/068/63e202276944f543.jpg" alt=""></a>
<div class="text">
<span>中级</span>
<a href="">PHP入门速学(台湾同胞)我来了我来也我来也我来也</a>
</div>
<div class="detail">
<span>1177次学习</span>
<span>收藏</span>
</div>
</li>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 0.625rem;
}
body {
width: 1200px;
height: 580px;
border: 1px solid red;
}
div.new {
display: flex;
flex-flow: row nowrap;
place-content: space-between;
place-items: center ;
height: 50px;
}
div.new > h3 {
font-size: 2.2rem;
flex:10px;
}
div.new > a {
font-size: 1.8rem;
}
div.course {
display: grid;
height: 53rem;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 20px;
place-items:stretch;
place-self:center;
}
div.course > li {
list-style:none;
}
div.course > li.item > a img {
width: 224px;
height: 160px;
border-radius: 6px 6px 0px 0px;
}
div.course > li > div.text {
display:flex;
margin: 18px;
}
div.course > li >div.text > span {
font-size:1.1rem;
width: 32px;
height: 20px;
background-color: #FCE7E0;
color: #FD4029;
text-align: center;
}
div.course > li >div.text > a {
margin-left: 10px;
width: 140px;
}
div.course > li > div.detail {
display:flex;
place-content: space-between;
margin-left:18px;
margin-right:18px;
}