开发者

height of the body to fit 100% of what ever resolution the monitor is

is i t possible to ge开发者_运维知识库t the body or any other element to fill the whole height of the browser in any resolution with css?

many thanks


You might try using:

html,body{
height:100%;
}

This is often used to force scroll bars in browsers that only show scroll bars once the content on the page forces the height to be below the fold. (keeping the page consistent and stopping it from jumping left and right depending on page height).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜