Home  >  Q&A  >  body text

javascript - Mobile height issue

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?

phpcn_u1582phpcn_u15822709 days ago435

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-19 10:31:27

    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.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-19 10:31:27

    Sometimes you can set a fixed height. The mobile version does not affect it, or you can use js to set it dynamically

    reply
    0
  • Cancelreply