<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>開班信息</title>
<link rel="stylesheet" type="text/css" href="css/1.css">
</head>
<body>
<div class="outer">
<div class="title">
<a href="#">18年面授開班計劃</a>
<h3>近期開班</h3>
</div>
<div class="content">
<h3><a href="#">人工智能+python-高薪就業(yè)班</a></h3>
<ul>
<li>
<a class="right" href="#"><span class="red-font">預約報名</span></a>
<a href="#">開班時間:<span class="red-font">2018-04-26</span></a>
<li>
<a class="right" href="#"><span class="red-font">無座,名額爆滿</span></a>
<a href="#">開班時間:<span class="red-font">2018-03-23</span></a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:2018-01-23</a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:2017-12-20</a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:2017-11-18</a>
</ul>
<h3><a href="#">Android開發(fā)+測試-高薪就業(yè)班</a></h3>
<ul>
<li>
<a class="right" href="#"><span class="red-font">預約報名</span></a>
<a href="#">開班時間:<span class="red-font">2018-04-26</span></a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:<span>2018-03-23</span></a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:2018-01-23</a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:2017-12-20</a>
</ul>
<h3><a href="#">大數(shù)據(jù)軟件開發(fā)-青芒工作室</a></h3>
<ul class="no-border">
<li>
<a class="right" href="#"><span class="red-font">預約報名</span></a>
<a href="#">開班時間:<span class="red-font">2018-04-26</span></a>
<li>
<a class="right" href="#"><span>開班盛況</span></a>
<a href="#">開班時間:<span>2018-01-23</span></a>
</div>
</div>
</body>
CSS樣式代碼:
/*清除默認樣式*/
*{
margin: 0;
padding: 0;
}
/*同意頁面中的字體*/
body{
font:12px/1 宋體;
}
.outer{
width: 300px;
height: 471px;
/*background-color: #bfa;*/
/* 居中*/
margin:50px auto;
}
.title{
border-top: 2px #019e8b solid;
height: 36px;
/*設置行高*/
line-height: 36px;
background-color: #f5f5f5;
padding: 0px 22px 0px 16px;
}
.title a{
float:right;
color: #ff0000;
}
.title h3{
font: 16px "微軟雅黑"防嗡;
}
.content{
border: 1px solid #deddd9;
padding: 0px 28px 0px 20px;
}
.content h3{
margin-top: 15px;
margin-bottom: 15px;
}
.content a{
color: black;
text-decoration: none;
font-size: 12px;
}
.content a:hover{
color: red;
text-decoration: underline;
}
.content ul{
list-style: none;
border-bottom: 1px dashed #deddd9;
}
.content .no-border{
border: none;
}
.content li{
margin-bottom: 15px;
}
.content .red-font{
color: red;
font-weight: bold;
}
.content .red-font:hover{
color: blue;
}
.content .right{
float: right;
}