我已阅读了很多关于这个问题的其他帖子没有效果。我希望有一个背景图形可以延伸页面的整个长度,但它只能沿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