Why doesn't min-height not work on my page?

前端 未结 6 1869
忘掉有多难
忘掉有多难 2021-01-01 09:03

I have a gradient applied to the background of the body element. Then I have a container (right after body) that has a background .png image applied to it. The gradient alwa

6条回答
  •  难免孤独
    2021-01-01 09:13

    Specify height: 100% on the html, body and #body2 elements (line 1358).

    html, body, #body2
    {
        height: 100%;
        min-height: 100%;
    }
    

    Not tested in IE 6, works in 7 though.

提交回复
热议问题