【发布时间】: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