【问题标题】:IE 10 padding issue with sticky footer带有粘性页脚的 IE 10 填充问题
【发布时间】:2016-03-16 22:46:16
【问题描述】:

我想要没有滚动和粘页脚的页面。chrome 和 firefox 没有问题。但是 IE 10 显示了额外的填充。这是我的Jsfiddle

<style>
.clearfix:after  {content: "."; display: block; 
                  clear: both; visibility: hidden;
                  line-height: 0; height: 0;}

.clearfix        {zoom: 1;}

#fixedmenu      {height:75px; background:#A2BBD5; 
                 font-family:'Open Sans', sans-serif;
                 font-size:12px;}

.kapsa           {min-height:574px; padding-bottom: 25px;
                  text-align:center;}

.w100            {width:100%;}

.maz             {margin:0 auto;width:1000px;}

.footer          {min-width:1000px; margin-top: -25px;
                  height: 25px; background:#EC2155;}
</style>

<script>
$(document).ready(function (){
$(window).resize(function() {
    $('.kapsa').height($(window).height() - 100);
});

$(window).trigger('resize');

});
</script>

<div id="fixedmenu" class="w100 clearfix"></div>

<div class="kapsa maz"></div>

<div class="footer"></div>

【问题讨论】:

  • 我们看不到您的小提琴,因为您在链接中添加了双引号。此外,您必须在此处发布一些代码供我们查看。

标签: css sticky-footer


【解决方案1】:

我在 IE 上看到的与我在 Safari 或 Chrome 上看到的没有任何区别。

您可以尝试将 !important 放在您设置的填充后面和/或定义您的填充,即使它只是

padding: 0 !important;

【讨论】:

  • 嗨,欢迎来到 SO。这实际上应该是评论,而不是答案。一旦你获得足够的声誉,你就可以发表评论,所以你应该努力。谢谢。
  • 抱歉,我认为这是对答案的提议
  • 我明白,我的错。 :-)
猜你喜欢
  • 2012-12-28
  • 2014-01-20
  • 2014-09-23
  • 2018-05-14
  • 1970-01-01
  • 2011-10-21
  • 2014-07-27
相关资源
最近更新 更多