开班信息:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网页=图片</title>
<link rel="stylesheet" type="text/css" href="style.css" /></head>
<body>
<div class="outer">
<div class="title">
<a href="#">18年面授开班计划</a>
<h3>近期开班</h3>
</div>
<div class="content">
<h3><a href="#">人工智能+Python-高新就业班</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>
<li>
<a class="right" href="#"><span class="red-font" >无座,名额爆满></span></a>
<a href="#">开班时间:<span class="red-font" >2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
</ul>
<h3><a href="#">Android开发+测试-高新就业班</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>
<li>
<a class="right" href="#"><span class="red-font" >无座,名额爆满></span></a>
<a href="#">开班时间:<span class="red-font" >2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
</ul>
<h3><a href="#">大数据软件开发-青芒工作室</a></h3>
<ul class="none-berder">
<li>
<a class="right" href="#"><span class="red-font" >预约报名></span></a>
<a href="#">开班时间:<span class="red-font" >2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span class="red-font" >无座,名额爆满></span></a>
<a href="#">开班时间:<span class="red-font" >2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
<li>
<a class="right" href="#"><span>开班盛况></span></a>
<a href="#">开班时间:<span>2018-04-26</span></a>
</li>
</ul>
</div>
</div>
</body>
</html>
样式: “ style.css ”
/*清除默认样式*/
*{
margin:0;
padding:0;
}
/*统一字体*/
body{
font:12px/1 宋体;
}
.outer{/**/
width:300px;
/*height: 471px;*/
/*background-color: oldlace;*/
margin:50px auto;/*居中*/
}
.title{
border-top:2px #019e8b solid;
height:36px;
background-color:#f5f5f5;
/*设置行高*/
line-height:36px;
padding:0px 22px 0px 16px;
}
.title a{
float:right;/*浮动*/
color:red;
}
.title h3{
font:16px/36px "微软雅黑";
}
/*内容区*/
.content{
border:1px solid #deddd9;
padding:0px 28px 0px 20px;
}
.content a{
color:black;
text-decoration:none;
font-size:12px;
}
.content a:hover{
color:orangered;/*鼠标移入变颜色*/
text-decoration:underline;/*下划线*/
}
.content h3{
margin-top:15px;
margin-bottom:15px;
}
.content ul{
/*去除项目符号*/
list-style:none;
border-bottom:1px dashed #555555;
}
.content li{
margin-bottom:15px;
}
.content .red-font{
color:red;
font-weight:bold;
}
.content .right{
float:right;
}
.content .none-berder{
border:none;
}