Firefox与IE的不同字体大小&铬

时间:2015-10-31 05:34:29

标签: html css google-chrome firefox font-size

我的网站在开发过程中查看Mozilla Firefox,其中包含相同的字体大小声明,margin&填充和不同的字体系列总是比谷歌浏览器或Internet Explorer中的小一些。

例如字母" O":

IE: 27 px height
Chrome: 27 px height
Firefox: 24 px height

所有开发人员工具都显示font-size:38px;。我也尝试用em值解决问题。但问题也是如此。

我有什么想法可以找出问题所在?

Different font size Chrome Different font size Firefox

1 个答案:

答案 0 :(得分:1)

我认为这对你有帮助。

<html>
<head>


<!--[if IE]>
<style>
body{
background-color:red;
}

</style>
<![endif]-->

<style>
@-moz-document url-prefix() {
body{
background-color:green;
}
}
body{ 
background-color:yellow;
}
</style>

</head>

</html>
相关问题