Home > front end >  Zoom appears at the bottom of the browser space
Zoom appears at the bottom of the browser space

Time:03-30

As the scaling of the browser, appears at the bottom of the browser of a large number of white space, how to solve?

CodePudding user response:

Listening to the onresize event

CodePudding user response:

Don't give a fixed, with 100%, the body or outer box if you can't give high 100% can be used 100 vh, but the mobile terminal compatibility problems, can use window. The innerHeight dynamic JS set high (three methods have their advantages and disadvantages, see yourself project is suitable for what kind of)
  • Related