サマリー:<!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培訓(xùn)班信息</div>
<div class="content">
<h5>HTML+CSS培訓(xùn)班信息</h5>
<ul>
<li><a href="#">HTML+CSS基礎(chǔ)班</a><span class="red right">第四期預(yù)約報名</span><del>原價:2295</del><span>現(xiàn)價:1188元</span><button type="submit">報名</button></li>
<li><a href="#">HTML+CSS基礎(chǔ)班</a><span class="blue right">第三期火爆已開班</span></li>
<li><a href="#">HTML+CSS基礎(chǔ)班</a><span class="blue right">第二期火爆已開班</span></li>
<li><a href="#">HTML+CSS基礎(chǔ)班</a><span class="blue right">第一期火爆已開班</span></li>
</ul>
</div>
</div>
</body>
添削の先生:韋小寶添削時間:2019-01-07 11:55:36
先生のまとめ:浮動在布局中使用起來還是很舒服的,不過使用浮動多了也容易造成布局亂了, 還要記得清除浮動哦