我有一個非常簡單的問題網頁。它是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