I accidentally discovered that when applying the font and line-height attributes in CSS for the same HTML tag, you have to be careful. The writing order of these two is different, which will lead to different display effects.
Right now:
>>> If you write font first and then line-height, the display effect will be normal
>>> If you write line-height first and then font, the effect of line-height definition will be lost, and this kind of bug occurs in IE, Firefox, and Opera
For specific results, please refer to the following code:
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
Right now:
>>> If you write font first and then line-height, the display effect will be normal
>>> If you write line-height first and then font, the effect of line-height definition will be lost, and this kind of bug occurs in IE, Firefox, and Opera
For specific results, please refer to the following code:
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]