【问题标题】:Sticky footer doesn't reach the right and left sides of browser window粘滞页脚没有到达浏览器窗口的左右两侧
【发布时间】:2012-06-06 07:17:39
【问题描述】:

CSS footer from cssstickyfooter.com not working correctly继续

http://www.cssstickyfooter.com/ 的此页脚未到达浏览器窗口的边缘:

页脚应该“接触”窗口的左右两侧,但正如您所看到的,似乎有一个小的边距。老实说,我不知道如何开始解决这个问题。但我不认为这是一个错误,因为它在 Chrome、Firefox 中呈现相同的方式,我认为甚至在 Internet Explorer 中也是如此。

【问题讨论】:

    标签: css footer sticky-footer


    【解决方案1】:

    添加到您的代码中

    html, body { padding: 0; margin: 0; } 
    

    防止页脚周围出现空格

    【讨论】:

      猜你喜欢
      • 2011-02-10
      • 1970-01-01
      • 2012-11-14
      • 2022-01-08
      • 2021-05-11
      • 1970-01-01
      • 2011-10-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多