javascript - Mobile height issue
phpcn_u1582
phpcn_u1582 2017-05-19 10:29:27
0
2
431

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_u1582
phpcn_u1582

reply all(2)
phpcn_u1582

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.

Peter_Zhu

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!