【问题标题】:IE 7 - getting extra padding on bottom of footer, any fixes?IE 7 - 在页脚底部获得额外的填充,有什么修复吗?
【发布时间】:2011-03-14 21:40:31
【问题描述】:

这是我的页脚 CSS。它应该位于页面的最底部,但由于某种原因在 IE 7 中......我得到了大约 10px 的额外边距。有什么修复吗?

 /*  FOOTER ********************************************************************************************************************/

 #footer-bg                          { margin: 0px auto; padding: 0px; width: 100%; text-align: center; background: url(../images/footer-bg.jpg) top left repeat-x  #123800;  }
 #footer                             {  margin: 0px auto; padding-bottom:30px;  width: 900px; font:11px Verdana, Arial, Helvetica, sans-serif; background: #123800 url(../images/footer.jpg) top center no-repeat; color: #b8ceae; text-align: justify!important;  }
 #footer .footer-nav                 { margin: 0px; padding: 160px 0px 3px 0px; font-size:11px; color: #789a47; }
 #footer p                 { color:#f9ffe9; margin: 0px; padding: 0px; }
 #footer .devby                      { margin:0px; padding: 15px 0px 0px 40px; height:20px; background:url(../images/prosites.png) left center no-repeat; }
 #footer br                 { display: none!important; } /* nuke coded breaks*/

【问题讨论】:

    标签: internet-explorer-7 padding margin extra


    【解决方案1】:

    使用负边距。

    【讨论】:

    • 是的,我明白这一点,但是如果我已经获得了额外的东西,为什么还要让它们变得更大,这就是为什么我将它们设置为 0 顶部和底部
    猜你喜欢
    • 2011-04-18
    • 1970-01-01
    • 2020-12-24
    • 2010-09-26
    • 2013-07-20
    • 2017-08-21
    • 1970-01-01
    • 2020-06-17
    • 2011-04-17
    相关资源
    最近更新 更多