How to make a div highly adaptable to browser height
This article is about how to make a div highly adaptive browser. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
This common question, I do not know how many front-end developers and back-end programmers, is actually very simple, write it here, let you share, there are a lot of people say, I have set div 100%, how come it has not worked, what I want to say is, there is a key thing that you have not set.
The code is as follows:
Html,body {height:100%;overflow:hidden;}
Haha, you can do it this time, you should set it up at the same time.
Thank you for reading! This is the end of this article on "how to make a div highly adaptive browser highly". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!