Which is better to adapt to rem or to use transfrom:scale?

background: a mobile page displayed purely
solution:
1.rem adaptive
2. Use transform"s scale to scale up the main container

at present, the effect can be displayed at the same proportion of the web page at different resolutions, but which is better?

Mar.04,2022

I don't know why, but now I love scale and don't like rem.


1. For mobile adaptation, there are two blocks: physical pixels and logical pixels; scaling, simply processing from physical pixels.
2. It is recommended to use vw, vh (above version of android4.4 & & ios8) or rem for pages displayed purely on mobile devices.

Menu