我有一个非常简单的问题网页。它是3个divs,坐在对方的顶部,标题,内容然后页脚。使页脚高度延伸到页面底部
我想让我的页脚高度展开到页面底部。我怎样才能做到这一点?
标题的高度不变,根据从AJAX调用接收到的内容,内容的高度会有所不同。所以我不能明确地设置它。
继承人我的jsfiddle:http://jsfiddle.net/5U6ZB/2/embedded/result/
<div id="header"></div>
<div id="content">
<!-- height is dynamic sometimes it will be full of divs that makes it
longer than the screen height other times it only has 1 div -->
</div>
<div id="footer">
<!-- How do I make the footer height fill up the rest of the page height? -->
</div>
body { background-color: white; }
div { width: 100%; }
#header {
height: 400px;
background-color: RGB(200,200,200);
}
#content {
}
#footer {
background-color: RGB(112,112,112);
/*How do I make the footer height fill up the rest of the page height?*/
}
不太什么要求,但我想,他到底是什么之后 - 当然,这正是我,当我结束了这个页面后!谢谢。 – BFWebAdmin 2012-09-21 07:42:19