css3 - Firefox 字号相对IE、Chrome更大,如何在CSS中统一?
PHPz
PHPz 2017-04-17 11:21:55
0
2
622

网页在IE、Chrome下的字号表现一致,但在Firefox下的字号更大。将Firefox页面缩放到80%时,其字号与在IE、Chrome下的字号的才差不多。
请教,如何解决?

PHPz
PHPz

学习是最好的投资!

reply all(2)
刘奇

I think it’s not a font size issue, but a default font issue. Please look at the picture below: The same font is 14px:

The above picture is the effect of firefox,

This is the effect under chrome
It seems that the font under chrome is larger, but actually because the default font under chrome and IE is Song Dynasty, and the default font under firefox is Microsoft Ya Black ,
The third picture above is proof:

This is still the effect under chrome. The font-size of both lines is 14px. One line is Microsoft Yahei, and the other line is the default Song font. It seems that the sizes will be different. , using Microsoft Yahei's font will look the same as in Firefox.
To sum up, if you want the font size to look the same in different browsers, in addition to unifying font-size, you also need to set font-family** in a unified way

伊谢尔伦

reset.css
normalize.css

Generally speaking, the font size should be about the same size. Check to see if your ff settings have been adjusted upwards.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template