简体   繁体   English

在Firefox上没有正确对齐的跨度

[英]Spans not aligned properly on firefox

I have two spans being not aligned properly on Firefox : 我有两个跨度在Firefox上没有正确对齐:

 .foo { padding : 3px 8px; } 
 <span class='foo' style='background-color:blue; font-family: Arial'>FOO</span> <span class='foo' style='background-color: green; font-family: Lato'>BLAH</span> 

It's perfectly fine on all the IE and Chrome browsers, but for some reasons on Firefox, the left span isn't aligned with the right span. 它在所有IE浏览器和Chrome浏览器上都非常好,但由于某些原因,Firefox上的左侧跨度与右侧跨度不对齐。 It looks like the right span is one px too much towards the bottom. 看起来右边距离底部是一个px太多了。

If I remove the foo class, it's working, but why in the world is firefox not aligning these spans properly ? 如果我删除foo类,它正在工作,但为什么在这个世界上firefox没有正确对齐这些跨度?

Firefox isn't playing well with Lato. Firefox与Lato的搭配并不好。 Adapting the font-family to match each other (or not using Lato) would solve the problem. 使字体系列相互匹配(或不使用Lato)可以解决问题。

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

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