求助怎么解决浮动之后下方div与上方div空隙
问题代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#top {
font-size: 24px;
line-height: 120px;
background-color: #FF9;
height: 120px;
width: 1000px;
}
#LeftTop {
background-color: #CFC;
height: 120px;
width: 400px;
float: left;
}
#RightTop {
background-color: #9FC;
height: 120px;
width: 500px;
margin-left: 500px;
}
#Down {
font-size: 24px;
line-height: 60px;
background-color: #CCC;
height: 60px;
width: 1000px;
}
#top h2 {
float: left;
}
</style>
</head>
<body>
<div id="top">
<div id="LeftTop">此处显示 id "LeftTop" 的内容</div>
<h2>6</h2>
<div id="RightTop">此处显示 id "RightTop"的内容</div>
</div>
<div id="Down">此处显示 id "Down" 的内容</div>
</body>
</html>
为什么那个浮动的h2标签会吧下面的div挤到一边去啊 怎么解决这个问题