一直试图解决这个问题约一个小时,现在越来越令人沮丧。填充DIV高度
所以我需要我的div来填充页脚的其余部分。
http://gyazo.com/999cce47ea567878586fbc4c843f80fc
设置高度为100%的股利不增加尺寸的。
.body-middle {
width: 979px;
margin: 0 auto;
bottom:0;
height:100%;
padding-bottom: 50px;
}
footer {
height: 50px;
width: 100%;
text-align: center;
position: absolute;
bottom: 0;
background-color:#ebebeb;
}
他们都在一个div称为页面
.page {
min-height: 100%;
position:relative;
}
我已经做了,没有任何改变。 – Jedigasm 2013-03-12 14:46:43
如果你不打扰旧版浏览器,你可以将它添加到你的'.body-middle' - 'box-sizing:border-box;' – Pete 2013-03-12 14:58:46
没有改变任何东西。 – Jedigasm 2013-03-12 15:09:29