开发者

css 100% height

I have a structure like this

<body>
    <div class="level1">
        <div class="level2"></div>
    </div>
</body>

I want to apply 3 different images on body, .level1, level2 all required 100% height. How to apply? min-height: 100% works only for body and level1 but not on level2.

开发者_如何转开发

How to apply it?


html, body, div.level1, div.level2
{
    height: 100%;
}

And don't forget the doctype!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜