Isn’t your rem relative to html? ? How do you set the body? Not to mention the html or the body. Huawei mobile phones do have a lot of particularities. Most of them can be solved through an attribute value in the meta tag. I forgot what it is specifically. You can check it. Check, similar to
Thank you for the invitation. In the app? Webview of your own application? I have encountered this kind of compatibility pitfall before. At that time, the page height was wrong on some mobile phones. . Later, I had no choice and couldn't afford it, so I changed my plan. Until Android they upgraded the application and changed the webview.
This calculation is not accurate. It may not only be Huawei phones, but also Meizu phones! Take a look. . .
Downgrade the css and judge the maximum font-size. Even on a big screen, if the font is too large, it will affect the look and feel. The font-size I made back then was 20px.
Isn’t your rem relative to html? ? How do you set the body? Not to mention the html or the body. Huawei mobile phones do have a lot of particularities. Most of them can be solved through an attribute value in the meta tag. I forgot what it is specifically. You can check it. Check, similar to
You are checking what else you need to write about Huawei mobile phones. You have written them all. Try it now
Also, rem is generally the font-size of HTML
Thank you for the invitation. In the app? Webview of your own application? I have encountered this kind of compatibility pitfall before. At that time, the page height was wrong on some mobile phones. . Later, I had no choice and couldn't afford it, so I changed my plan. Until Android they upgraded the application and changed the webview.
This calculation is not accurate. It may not only be Huawei phones, but also Meizu phones! Take a look. . .
Downgrade the css and judge the maximum font-size. Even on a big screen, if the font is too large, it will affect the look and feel. The font-size I made back then was 20px.