When I was working on the mobile web page, I encountered the problem of setting the height such as p. How to solve it? The height cannot be used with rem and 100%, nor can it be adaptive. The height of the mobile browser will still be the same! I would like to ask, how can I adjust the height?
Brother, there are units on the mobile terminal which are vw and vh. I suggest Google for details. It’s very useful. Sometimes setting the height of the body to 100% can also solve many problems.
Sometimes you can set a fixed height. The mobile version does not affect it, or you can use js to set it dynamically