如何将页脚推到屏幕的底部?

时间:2011-07-12 18:01:04

标签: html css

  

可能重复:
  How to align footer (div) to the bottom of the page?
  http://www.google.com/#q=bottom+footer+site:stackoverflow.com   

如何将页脚推到页面底部?

我尝试了很多方法但没有任何作用:)

我的Html

<div id="header">
.
.
</div>

<div id="container">
.
.
</div>

<div id="footer">
    <div id="footerContent">
.
.
    </div>
</div>

http://www.doturbo.com/test/404.html

http://www.doturbo.com/test/contact.html

2 个答案:

答案 0 :(得分:2)

我发现下面链接的方法对我个人的需求最有效:

http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

答案 1 :(得分:0)

position: absolute;
bottom: 0px;
相关问题