HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="1.css">
</head>
<body>
<div class='zhuye'>
<div class='yemian'>
<div class = 'head1'>
<span class="title1">近期开班</span>
<span class='title2'><a href="#">18年面授开班计划</a></span>
</div>
<div class='b'><span class='AI1'>人工智能+Python-高薪就业班</span></div>
<div class='b'>
<span class='AI2'>开班时间:</span>
<span class='AI3'><a href="#">2018-04-26</a></span>
<span class='AI4'><a href="#">预约报名</a></span>
</div>
<div class='b'>
<span class='AI5'>开班时间:</span>
<span class='AI6'><a href="#">2018-03-23</a></span>
<span class='AI7'><a href="#">无座,名额爆满</a></span>
</div>
<div class='b'>
<span class='AI8'>开班时间:</span>
<span class='AI9'>2018-01-23</span>
<span class='AI10'>开班盛况</span>
</div>
<div class='b'>
<span class='AI11'>开班时间:</span>
<span class='AI12'>2017-12-20</span>
<span class='AI13'>开班盛况</span>
</div>
<div class='b'>
<span class='AI14'>开班时间:</span>
<span class='AI15'>2017-11-18</span>
<span class='AI16'>开班盛况</span>
</div>
<div class='d'>
<div class='a' ><span class='Android1'>Android开发+测试-高薪就业班</span></div>
<div class='b'>
<span class='Android2'>开班时间:</span>
<span class='Android3'><a href="#">2018-04-26</a></span>
<span class='Android4'><a href="#">预约报名</a></span>
</div>
<div class='b'>
<span class='Android5'>开班时间:</span>
<span class='Android6'>2018-03-23</span>
<span class='Android7'>开班盛况</span>
</div>
<div class='b'>
<span class='Android8'>开班时间:</span>
<span class='Android9'>2018-01-23</span>
<span class='Android10'>开班盛况</span>
</div>
<div class='b'>
<span class='Android11'>开班时间:</span>
<span class='Android12'>2017-12-20</span>
<span class='Android13'>开班盛况</span>
</div>
</div>
<div class='e'>
<div class='a'><span class='Bigdata1'>大数据然健开发+青芒工作室</span></div>
<div class='b'>
<span class='Bigdata2'>开班时间:</span>
<span class='Bigdata3'><a href="#">2018-04-26</a></span>
<span class='Bigdata4'><a href="#">预约报名</a></span>
</div>
<div class='b'>
<span class='Bigdata5'>开班时间:</span>
<span class='Bigdata6'>2018-01-23</span>
<span class='Bigdata7'>开班盛况</span>
</div>
</div>
</div>
</div>
</body>
</html>
CSS
.zhuye{
height: 479px;
width: 310px;
background-color:#fff;
margin: auto
}
.yemian{
border-top:2px green solid;
border-left:2px rgb(222,221,217) solid;
border-right:2px rgb(222,221,217) solid;
border-bottom:2px rgb(222,221,217) solid;
margin-top:12px;
height: 471px;
width: 300px;
background-color: #fff;
margin: auto
}
.paitou{
height: 479px;
width: 6px;
background-color:green
}
.head1{
border-bottom:2px rgb(222,221,217) solid;
height:36px;
width:300px;
background-color:rgb(245,245,245);
}
.title1{
margin: 16px;
font-size: 15px ;
line-height: 36px;
list-style-type: none;
}
.title2{
margin-right: 16px;
font-size: 10px ;
line-height: 36px;
float: right;
list-style-type: none;
}
.AI1{
margin: 21px;
font-size: 12px ;
font-weight: bold;
list-style-type: none;
}
.AI2{
margin: 21px;
font-size: 12px ;
list-style-type: none;
}
div a{
text-decoration:none;
}
.AI3{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.AI4{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.AI5{
margin: 21px;
text-decoration:none;
font-size: 12px ;
list-style-type: none;
}
.AI6{
font-weight: bold;
text-decoration:none;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.AI7{
font-weight: bold;
text-decoration:none;
margin-left: 23px;
font-size: 12px ;
list-style-type: none;
}
.AI8{
margin: 21px;
font-size: 12px ;
list-style-type: none;
}
.AI9{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.AI10{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.AI11{
margin: 21px;
font-size: 12px ;
list-style-type: none;
}
.AI12{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.AI13{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.AI14{
margin: 21px;
font-size: 12px ;
list-style-type: none;
}
.AI15{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.AI16{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Android1{
font-size: 12px ;
font-weight: bold;
list-style-type: none;
}
.Android2{
font-size: 12px ;
list-style-type: none;
}
div a{
color: red;
text-decoration:none;
}
.Android3{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Android4{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Android5{
text-decoration:none;
font-size: 12px ;
list-style-type: none;
}
.Android6{
font-weight: bold;
text-decoration:none;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Android7{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Android8{
font-size: 12px ;
list-style-type: none;
}
.Android9{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Android10{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Android11{
font-size: 12px ;
list-style-type: none;
}
.Android12{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Android13{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Bigdata1{
font-size: 12px ;
font-weight: bold;
list-style-type: none;
}
.Bigdata2{
font-size: 12px ;
list-style-type: none;
}
div a{
text-decoration:none;
}
.Bigdata3{
font-weight: bold;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Bigdata4{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.Bigdata5{
text-decoration:none;
font-size: 12px ;
list-style-type: none;
}
.Bigdata6{
font-weight: bold;
text-decoration:none;
margin-left: 8px;
font-size: 12px ;
list-style-type: none;
}
.Bigdata7{
font-weight: bold;
text-decoration:none;
margin-left: 50px;
font-size: 12px ;
list-style-type: none;
}
.a{
margin-top:5px
}
.b{
margin-top:5px;
margin-bottom:5px;
}
.c{
height: 425px;
width: 280px;
boder: 2px red solid;
/*border-color: rgb(222,221,217);*/
margin:auto;
}
.d{
margin-top:15px;
width: 251px;
height: 150px;
margin:auto;
border-top:2px rgb(222,221,217) dotted;
}
.e{
width: 251px;
height: 80px;
margin:auto;
border-top:2px rgb(222,221,217) dotted;
}