What is the compatibility of mobile vw and vh adaptation scheme?

Mobile uses vw and vh units. What is the current compatibility? can it be used in the project?

Mar.10,2021

stumbled upon this problem
now 92% of compatibility can be directly used
and
specific compatibility Click to view compatibility


depending on the platform your project needs to run, refer to the following compatibility table to decide:

https://caniuse.com/-sharpfeat=vie.

generally speaking, if you only need android and iOS, there will be no problem, and android 4.4 and iOS8 and above will support it.


front-end mobile adaptation solution
if you use rem,vw,vh for mobile adaptation, it is usually used only in individual places in the project.


Please see


now the compatibility problems are generally solved in this way
1, define a font-size
2 to html directly, and then use font-size to relative value (rem)


with version requirements: android4.4 or above. Ios8 above

Menu