나는 매우 간단한 웹 페이지를 가지고 있습니다. 그것은 서로의 ontop, 머리글, 내용 다음 바닥 글에 앉아 3 divs ahs.바닥 글 높이가 페이지 하단까지 연장되도록합니다.
내 바닥 글 높이가 페이지 하단으로 확장되기를 원합니다. 어떻게해야합니까?
헤더의 높이가 일정하며 내용의 높이는 AJAX 호출에서받은 내용에 따라 다릅니다. 그래서 저는 그것을 명시 적으로 설정할 수 없습니다.
Heres는 내 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