HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>开班计划</title>
<link rel="stylesheet" type="text/css" href="3.27.css">
</head>
<body>
<div class="box">
<div class="box1">
<div class="box1-a"></div>
<span class="box1-b">近期开班</span>
<a href="#" class="box1-c">
18年面授开班计划
</a>
</div>
<div class="box2">
<div class="box2-a">
<span class="box2-a-a">
人工智能+Python-高薪就业班
</span>
</div>
<ul class="box2-b">
<li>
<a href="#">开班时间:<span>2018-04-26</span></a>
<a href="#">预计报名</a>
</li>
<li>
<a href="#">开班时间:<span>2018-03-23</span></a>
<a href="#">无座,名额爆满</a>
</li>
<li>
<a href="#">开班时间:<span>2018-01-23</span></a>
<a href="#">开班盛况</a>
</li>
<li>
<a href="#">开班时间:<span>2018-12-30</span></a>
<a href="#">开班盛况</a>
</li>
<li>
<a href="#">开班时间:<span>2017-11-18</span></a>
<a href="#">开班盛况</a>
</li>
</ul>
<div class="box2-c">
<span class="box2-c-a">
Android开发+测试=高薪就业班
</span>
</div>
<ul class="box2-d">
<li>
<a href="#">开班时间:<span>2018-04-26</span></a>
<a href="#">预计班名</a>
</li>
<li>
<a href="#">开班时间:<span>2018-03-23</span></a>
<a href="#">开班盛况</a>
</li>
<li>
<a href="#">开班时间:<span>2018-01-23</span></a>
<a href="#">开班盛况</a>
</li>
<li>
<a href="#">开班时间:<span>2017-12-20</span></a>
<a href="#">开班盛况</a>
</li>
</ul>
<div class="box2-e">
<span class="box2-e-a">
大数据软件开发-青芒工作室
</span>
</div>
<ul class="box2-f">
<li>
<a href="#">开班时间:<span>2018-04-26</span></a>
<a href="#">预计报名</a>
</li>
<li>
<a href="#">开班时间:<span>2018-01-23</span></a>
<a href="#">开班盛况</a>
</li>
</ul>
</div>
</div>
</body>
</html>
............................................................................................................................................................
CSS
*{
margin:0px;
padding:0px;
}
.box{
width:310px;
height:480px;
background-color:rgb(245,245,245);
/*background-color:yellow;*/
margin:50px auto;
}
.box1{
width:299px;
height:45px;
margin-right:4px;
margin-left:4px;
padding-top:4px;
/*background-color: orange;*/
}
.box1-a{
width:299px;
height:2px ;
margin-top:4px;
background-color:blue;
}
.box1-b{
width:70px;
height:15px;
margin-top: 10px;
margin-left: 15px;
float:left;
}
.box1-c{
width:150px;
height:10px;
float: right;
margin-right:5px;
margin-top:12px;
color: red;
}
.box2{
width:299px;
height:430px;
margin:0px 4px 4px 4px;
background-color:#fff;
}
.box2-a{
width:220px;
height:15px;
margin-top:20px;
margin-left:23px;
}
.box2-a-a{
font-weight: bold;
font-size:15px;
}
.box2-b{
width:255px;
height:125px;
margin-top: 5px;
/*background-color:red;*/
list-style: none;
margin-left:23px;
}
.box2-b li a{
text-decoration: none;
color:#000;
}
.box2-b li a:hover{
color: red;
}
.box2-c{
width:220px;
height: 15px;
margin-top:20px;
margin-left:23px;
}
.box2-c-a{
font-weight: bold;
font-size:15px;
}
.box2-d{
width:255px;
height:100px;
margin-top: 5px;
/*background-color:red;*/
list-style: none;
margin-left:23px;
}
.box2-d li a{
text-decoration: none;
color:#000;
}
.box2-d li a:hover{
color:red;
}
.box2-e{
width:220px;
height: 15px;
margin-top:20px;
margin-left:23px;
}
.box2-e-a{
font-weight: bold;
font-size:15px;
}
.box2-f{
width:255px;
height:50px;
margin-top: 5px;
/*background-color:red;*/
list-style: none;
margin-left:23px;
}
.box2-f li a{
text-decoration: none;
color:#000;
}
.box2-f li a:hover{
color: red;
}