Text rendering between OS X and Windows throwing off my padding?

扶醉桌前 提交于 2019-12-07 18:02:26

You need to specify a line-height for the specific browser (painfull) use this type of properties: 1.1, etc over specifying pixels, from my experience it works better.

Also, still in the Mac, between Safari and Firefox you'll notice a difference between line-heights! So this isn't just OSX vs Windows.

Your font-files may be incorrect.
I had the same issue with a local installed webfont too. Thankfully Google provided the same font as a webfont, solved the problem for me.

Default font of operating systems is different so add a font-family: Arial to your elements css. It should work in OSX and Windows because Arial is supported by both of them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!