简体   繁体   English

Firefox与IE和Chrome的字体大小不同

[英]Different font size in Firefox vs. IE & Chrome

my website in developing process looking in Mozilla Firefox with same font-size declaration, margin & padding and different font-families always a few smaller than in Google Chrome or Internet Explorer. 我的网站在开发过程中在Mozilla Firefox中使用相同的字体大小声明,边距和填充以及不同的字体系列寻找的结果总是比Google Chrome或Internet Explorer小一些。

For example letter "O": 例如字母“ O”:

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

All developer tools show font-size:38px;. 所有开发人员工具均显示font-size:38px;。 I've also tried to fix the issue with em values. 我还尝试使用em值解决此问题。 But it's the same issue. 但这是同样的问题。

Any ideas how I can find out where the issue is? 有什么想法可以找出问题所在吗?

Chrome的不同字体大小 不同的字体大小Firefox

i think this would be help for you. 我认为这对您有帮助。

<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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM