【发布时间】:2011-09-25 22:10:03
【问题描述】:
我知道有很多关于 CSS 100% 高度问题的问题。 但是我尝试按照那里的说明进行操作,但高度仍然不是 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 上。
如果有人可以提供帮助,那就太好了!
【问题讨论】: