div 之间的间距问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 14:06:41
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>top</title>
<style>
#container {
background-color: #FFFFFF;
width: 100%;
height:100%;
background-image: url(../imgs/topbg.gif);
background-repeat: repeat-x;
}
/**top层的样式*/
#Top {
HEIGHT: 44px;
margin:0 auto;
top:0;
}
/*右边栏,固定宽度*/
#divleft{
float:left;
width:203px;
text-align:center;
border: 1px solid #55759C;
z-index:100;
height:auto;
}
/*隐藏层*/
.HideLeft{
float:left;
width:60px;
text-align:center;
height:auto;
background-color:#000033;
height:300px;
}
.HideLeftover{
float:left;
width:3px;
}
#Hideright{
float:right;
height:400px;
width:1px;
background-color:#00FF00;
}
#right {
b

是因为#right里 width:100%; 宽度你得换成数字的

而且#right你少个FLOAT:LEFT就解决了
说实话,你这样布局的做法,让我感觉摸不着头脑,或许是我见识短浅,
尤其是右边哪个线,你完全可以做到一个层的边上,没必要单加一个层
有其他问题进我BLOG查,
我BLOG 有我平时遇到的一些问题,解决后发表到BLOG 上了