效果图
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="{CHARSET}">
<title></title>
<style type="text/css">
*{
margin: 0 auto;
font-family:"微软雅黑" ;
}
.course{
width: 220px;
background-color: #f2f4f6;
border: 1px #ececec solid;
}
.list1{
height: 150px;
line-height: 150px;
text-align: center;
font-size: 20px;
color: #fff;
font-weight: bold;
background-color: #040a10;
}
.list2{
padding: 10px 5px 5px 5px;
font-size: 14px;
border-bottom: 1px #d9dde1 solid;
margin: 0 15px;
line-height: 1.5em;
}
span{
font-size: 12px;
color: #93999f;
}
.special{
border-bottom: none;
}
</style>
</head>
<body>
<div class="course">
<div class="list1">
<p>前端课程排列</p>
</div>
<div class="list2">
<p>HTML+CSS基础课程</p>
<span>336699人在学</span>
</div>
<div class="list2">
<p>HTML+CSS基础课程</p>
<span>336699人在学</span>
</div>
<div class="list2 special">
<p>HTML+CSS基础课程</p>
<span>336699人在学</span>
</div>
</div>
</body>
</html>