abstract:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style type="te
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
*{
padding: 0px;
margin: 0px;
font-size: 12px;
}
.box{
border: 1px solid red;
width: 400px;
height:400px;
}
.title{
font-size: 16px;
color: black;
font-weight:bold;
height: 35px;
line-height: 50px;
text-indent: 30px;
text-align:center;
}
.content{padding:10px;}
.content h5{font-size: 14px;}
.content ul li
{ list-style-type: none;
border-bottom: 1px dashed red;
height: 30px;
line-height: 30px;
color: gray;
}
.red {color: red; }
.blue{color: blue;font-weight: bold;}
.right{
float: right;
}
a:link,a:visited{color: red;text-decoration: none;}
a:hover{color: blue;}
del{color:#ccc; padding: 0px 5px;}
ul li span{color:red;font-weight: bold;}
button{padding: 0px 5px;margin:5px; border:1px solid #FF8600;color:red;}
</style>
</head>
<body>
<div class="box">
<div class="title">HTML+CSS培训班信息</div>
<div class="content">
<h5>HTML+CSS培训班信息</h5>
<ul>
<li><a href="#">HTML+CSS基础班</a><span class="red right">第四期预约报名</span><del>原价:2295</del><span>现价:1188元</span><button type="submit">报名</button></li>
<li><a href="#">HTML+CSS基础班</a><span class="blue right">第三期火爆已开班</span></li>
<li><a href="#">HTML+CSS基础班</a><span class="blue right">第二期火爆已开班</span></li>
<li><a href="#">HTML+CSS基础班</a><span class="blue right">第一期火爆已开班</span></li>
</ul>
</div>
</div>
</body>
Correcting teacher:韦小宝Correction time:2019-01-07 11:55:36
Teacher's summary:浮动在布局中使用起来还是很舒服的,不过使用浮动多了也容易造成布局乱了, 还要记得清除浮动哦