The conversion between rem Google browser and Firefox browser is not correct.

set html {font-size:62.5%! important} in APP.vue and {width:100%,hieght:5rem} in a div of other components, but it is 60px in Google and 50px in Firefox when checking elements.

clipboard.png

clipboard.png

Mar.26,2021

be reasonable, if you want to see the rem unit layout in the browser.
it is recommended that when using Google browser, cancel the setting to the minimum font 12px.
so you can keep it consistent.

clipboard.png


chrome there is a minimum font size limit 12px


and normally, the font-size of html should be the width or multiple of the design, such as 750pxpx75px, which is convenient for developers to write rem

.
Menu