clear一般单独定义一个类,来使用
<html>
<head>
<title>float与clear属性常见用法</title>
<style>
#one {
height:200px;
width:300px;
background:#FF0000;
float:left;
}
#two {
height:200px;
width:300px;
background:#0000FF;
float:left;
}
.clear{
clear:both;
}
#three {
height:200px;
width:300px;
background:#FFFF00;
float:left;
}
</style>
</head>
<body>
<DIV id="one">
aaa
</DIV>
<DIV id="two">
bbb
</DIV>
<div class="clear">
</div>
<DIV id="three">
ccc
</DIV>
</body>
</html>