Font-size issues comparing chrome and Firefox

后端 未结 7 742
清酒与你
清酒与你 2020-11-27 06:07

I built a site and the problem is, chrome display font-size 1px bigger than Firefox. I tried several ways to match the font-size, specified it in px, in % set t

相关标签:
7条回答
  • 2020-11-27 06:36

    em is scalable and px is not. Set the font to a defined px size and you should be ok. em can be desirable in certain circumstances, but if you are worried about 1px then you should set strict pixel sizes.

    EDIT: Just reread and I see you have tried setting the height as pixels already. Don't have a clue then as I don't have Chrome installed here to test. :(

    0 讨论(0)
提交回复
热议问题