重新浏览Firefox按钮行高bug ...任何2011年的解决方案? [英] Revisiting the Firefox button line-height bug... any 2011 solutions?

查看:62
本文介绍了重新浏览Firefox按钮行高bug ...任何2011年的解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firefox 行高错误是一种痛苦。简而言之,它通过浏览器样式防止 line-height 按钮上的手动设置 line-height:normal!important

The Firefox line-height bug is a pain. In short, it prevents the manual setting of line-height on button elements through a browser style line-height: normal !important declaration that can't be reversed.

现在这是一个巨大的痛苦,在一个时代,黑客攻击浏览器特定的怪癖幸运地越来越有必要,我讨厌必须对所有浏览器的Firefox的例外。

Now this is a huge pain, and in an era where hacking around browser-specific quirks is fortunately becoming decreasingly necessary, I'd hate to have to make an exception for Firefox of all browsers.

所以我的问题是,是否有我可以做的任何事情,因为上面的文章的让步,使它基本上是不可能的。

So my question now is whether there's anything I can do about it since the concession that the above article made that it was basically impossible.

这里是一个小玩意: http://jsfiddle.net/hBLQ7 /

在Firefox和Chrome中打开,并观察其差异。

Open in Firefox and Chrome and observe the difference.

推荐答案

你可以设置按钮的高度,如果这是你的后?

Can you just set the height of the button, if that's what you're after?

这篇关于重新浏览Firefox按钮行高bug ...任何2011年的解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆