Edge browsers change the root font size and rem does not recalculate.

The

page uses rem to make a responsive layout. One problem is that although resize modifies the font size of the html tag, the width and height of the page content (controlled by rem) remain unchanged, but open the console and select a tag. That tag can change the width and height according to the font size set on the html tag.

Mar.20,2021

just encountered this problem and solved it. The idea is that js modifies any attribute of an element to make the element render again.

image.png

Menu