【问题标题】:Background image stopping after footer背景图像在页脚后停止
【发布时间】:2013-03-09 16:17:40
【问题描述】:

您好,我在网站上需要帮助。背景图像在页脚处停止,这意味着在长页面上,我在下面看到一个丑陋的部分,而不是在下面继续背景。我尝试使用 padding-bottom 但是我在不需要它的页面上得到了填充,

主页较长,所以没有问题,网站在页脚上反弹。

Stage site addy - http://stage.microscooterstore.co.uk/mss/

问题页面示例:http://stage.microscooterstore.co.uk/mss/checkout/cart/

【问题讨论】:

    标签: css image background footer repeat


    【解决方案1】:

    给你的<html/><body/>.ma-wrapper一个height100%

    html, body {
        height: 100%;
    }
    .ma-wrapper {
        min-height: 100%;
    }
    

    【讨论】:

    • 他还需要将min-height: 100%添加到#ma-wrapper
    • 非常感谢 - 现在工作,为此掉了很多头发
    【解决方案2】:

    您的容器.ma-wrapper 没有延伸到页面底部。

    .ma-wrapper {
      height: 100%;
    }
    

    【讨论】:

      猜你喜欢
      • 2021-09-24
      • 1970-01-01
      • 2012-03-03
      • 1970-01-01
      • 2010-12-10
      • 1970-01-01
      • 2013-10-22
      • 1970-01-01
      • 2012-11-19
      相关资源
      最近更新 更多