What is the best solution to the webapp resolution compatibility problem so far?

can you give an easy-to-understand brief description of how to achieve compatibility, or the principle


write in rem and then different resolutions correspond to different rem units


what I have learned so far is to use vw and vh as the unit of width and length. This is the new unit of size supported by h5. 1vw is 1% of the width of the device. The place that is stronger than 1% has nothing to do with the parent element.

it is recommended that you read Mobile Taobao adaptation https://www.w3cplus.com/mobil.

.
Menu