【问题标题】:Footer won't stick to the bottom..help?页脚不会粘在底部..帮助?
【发布时间】:2011-12-18 21:33:42
【问题描述】:

我在这里阅读了很多问题和答案,并一遍又一遍地尝试,但我无法让页脚粘住。这是链接:http://guntherkoo.com/new/

页脚只是不想停留在底部..但是当我缩小窗口大小时,它会停留吗?

请帮忙!! 谢谢!!

【问题讨论】:

标签: css html footer sticky


【解决方案1】:

您的页脚卡在div#pageWrap 的底部。尝试将页脚 div 移到该 #pageWrap div 之外,使其粘在 <body> 的底部

【讨论】:

    【解决方案2】:

    你也可以加个

    position:absolute;
    bottom:0;
    

    【讨论】:

    • 是的,你可以使用“position:fixed;bottom:0px;”正如 GregM 所提到的,但是当页面比浏览器窗口长时,页脚将隐藏您的内容。最好使用 javascript 解决方案,例如:codicode.com/art/the_best_sticky_footer.aspx
    猜你喜欢
    • 2012-09-10
    • 2020-04-04
    • 2017-06-14
    • 2012-05-07
    • 2014-11-17
    • 2012-09-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多