开发者

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

开发者 https://www.devze.com 2023-01-31 13:12 出处:网络
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?

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

精彩评论

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