我已閱讀了很多關於這個問題的其他帖子沒有效果。我希望有一個背景圖形可以延伸頁面的整個長度,但它只能沿2/3的方向向下。孩子浮動Divs突破家長Div
html, body { height: 100%; }
div#body-wrapper {
height:100%;
position:relative;
}
nav#side-navigation {
height:100%;
width:185px;
background-color:#C2F4C2;
float:left;
}
div#content-wrap {
width:775px;
height:100%;
float:right;
position:relative;
background:transparent url(../images/global/column_corner.gif) no-repeat top left;
}
如果我添加溢出:隱藏到#身體的包裝,它切斷了網站底部的一部分。
最後,這裏的活動源代碼:http://freshbaby.com/v20/about_us/index.cfm
可以顯示你的HTML結構 – sandeep 2012-03-23 18:59:13
任何你不能把背景圖像放在body或html上的原因嗎? – 2012-03-23 19:00:47
它只在本地機器上,所以我無法提供網址。 – 2012-03-26 14:16:39