Whether the mobile end should use rem layout

the previous method to write mobile side is full rem layout, except for the border of 1px, px will be replaced with rem, and then js dynamically sets the width of the html tag when the page is visited for the first time.

but some colleagues have mentioned that if you all use rem, the font in the small screen will be too small to see more content on the big screen than on the small screen.

but I"m a little confused. If using px ensures the font size, does it mean that the layout of the small screen will be misplaced because it can"t hold the corresponding things?

ask the great god for advice ~

Jul.19,2022

1. Generally speaking, fonts do not use rem, but all use px, because normally, regardless of screen size, users want to see fonts of the same size
2. As for misplacement, we can try our best to be adaptive in layout


fonts still use px. Try to use flex


Mobile layout or vw

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e77318-63c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e77318-63c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?