设置body高度为浏览器页面高度

原创文章,转载请注明: 转载自庆亮的博客-webgame架构

本文链接地址: 设置body高度为浏览器页面高度

在ie6下直接设置

body {height: 100%;}   

以上代码在ie7和ff下无效, 需如下设置:
html, body {height:100%; overflow:hidden;}  

overflow:hidden是为了避免ff下可能出现的竖向滚动条(在使用frame的情况下)

Leave a comment

0 Comments.

Leave a Reply

You must be logged in to post a comment.