我知道有很多关于css 100%高度问题的问题。 但是我试图按照指示那里,仍然高度不是100%,所以我想我会再次问这个问题。CSS高度100%问题
在这里你可以看到问题的网站是:
一些CSS样式:
html {
height: auto !important;
margin: 0;
min-height: 100%;
padding: 0;
}
body {
background: url("/wp-content/uploads/2011/06/bg.png") repeat-x scroll 0 100px #F2F7E8;
height: auto !important;
margin: 0;
min-height: 100%;
padding: 0;
width: 100%;
}
wrapper {
height: auto !important;
min-height: 100%;
position: relative;
}
footer-container {
background: url("/wp-content/uploads/2011/06/exendo-footer_bg.png") no-repeat scroll center bottom #557F40;
height:146px;
}
正如你可以在网站上看到的,页脚是页面上太高。 如果我用Firebug检查页面,我可以看到html是100%高度,但body标签不是。 这个问题都发生在Firefox和IE上。
如果有人能帮上忙,那太棒了!
感谢您的提示。我已经尝试了这一点(你可以在exendo.be上查看它),但由于某种奇怪的原因,它并没有工作。 我已经删除了保证金:0 auto -142px;因为其他的页脚甚至更高。全高还没有使用,我不知道为什么...... – denappel