<style>
body{
background:#FF9900;
color:#FFFFFF;
}
.wrapper{
width:900px;
height:auto;
padding:0px;
margin:auto;
background:#000000;
}
.header{
width:900px;
height:50px;
float:left;
padding:0px;
margin:0px;
}
.body_content{
width:900px;
height:200px;
float:left;
padding:0px;
margin:0px;
}
.fotter{
width:900px;
height:50px;
float:left;
padding:0px;
margin:0px 0px 25px 0px;
}
</style>
<div class="wrapper">
<div class="header">Header</div>
<div class="body_content">Body Content</div>
<div class="fotter">Footer</div>
</div>
如果我給一個包裝div高度:「500px」,我可以看到背景顏色黑色。但如果我改變高度=「自動」我不能看到顏色。我如何保持包裝div高度自動?
有人可以幫助我嗎?
請看這裏.. link text
如果我將它設置溢出:隱藏或溢出:汽車..我得到一個滾動 – Sridhar 2010-11-24 10:53:50
看到我更新... – 2010-11-24 11:02:41