Firefox输入字段的行高问题 [英] Firefox line-height issue with input fields

查看:126
本文介绍了Firefox输入字段的行高问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发现,Firefox有一个默认行 - 不能更改的输入字段的高度值为1.2。至少在OSX中,没有Windows,所以我不能在那里确认。



我做了一些实验和测试,没有办法改变默认行 - Firefox的高度值。所有其他浏览器(确定,我只是尝试与Chrome和Safari)服从我的价值完全正常,但不是火狐。



有没有人注意到这一点,如果是,找到一个解决方案来克服这个问题?

解决方案

不幸的是,在Firefox的基础上,line-height设置为!important css ...
http://hg.mozilla.org/mozilla-central/rev/b97aef275b5e


I have realized the problem before but I guess it didn't matter as much then as it did now.

What I discovered is that Firefox has a default line-height value of 1.2 for input fields which can not be changed. At least in OSX, don't have Windows so I can't confirm it there.

I did some experimenting and testing and there's just no way to change the default line-height value of Firefox. All the other browsers (ok, I just tried with Chrome and Safari) obey my value perfectly fine but not Firefox.

Has anyone ever noticed this and if yes, have you found a solution to overcome this?

解决方案

Unfortunatelly the line-height is set to !important in the Firefox base css ... http://hg.mozilla.org/mozilla-central/rev/b97aef275b5e

这篇关于Firefox输入字段的行高问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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