Home >Web Front-end >HTML Tutorial >How to make a page height occupy the entire screen_html/css_WEB-ITnose
For example, I am now making a login interface. I want to make the entire page full screen according to the different screen sizes of users.
I set height: 100%, which is invalid. The width is still the same. Yes, thank you
It is said that you can use js to get the resolution of the current user first, and then set it
I don’t know how, and I don’t think this method is easy to use.
Is there any other way? If so How to do it if the front end does not know js?
html{
height:100%
}
Earlier versions of ie may not support
First define
html{
height:100%
}
ie early version The version may not support