1. The code for calculating units using px is as follows:
:
2.rem1rem=100px:
:
3.rem1rem=50px:
:
(shows normal)
the above tests are carried out in chrome and opera browsers, and the width and height of div and img are both 80px. After testing, when the rem of the div > 1.06, the display is normal, and when the img is less than this value, the img shifts downwards.
find out the cause of the problem, thank you.