相关疑难解决方法(0)

CSS高度100%问题

我知道有很多关于css 100%身高问题的问题.然而,我试图按照那里的指示,仍然高度不是100%,所以我想我会再问这个问题.

您可以看到问题的网站是:

www.exendo.be

一些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;
}
Run Code Online (Sandbox Code Playgroud)

正如您在网站上看到的那样,页面上的页脚太高了.如果我用Firebug检查页面,我可以看到html是100%高度,但是body标签不是.这个问题都发生在Firefox和IE上.

如果有人能提供帮助那就太棒了!

css height footer

4
推荐指数
2
解决办法
5万
查看次数

标签 统计

css ×1

footer ×1

height ×1