数字输入类型太小 [英] Number input type too small

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

问题描述

我在html5中的输入类型编号有问题,看看我的图片,在其他浏览器中对我工作正常但在firefox中,微调器太小了。有一般的方法让它变得更好吗?

i have problem in input type number in html5, look at to my picture, in other browser that work fine for me but in firefox, the spinner is too small. Is there a generally way to make it better?

推荐答案

您可以通过添加删除Firefox上的微调器以下CSS规则

You can remove the spinner on Firefox by adding following CSS rule

input[type=number] {
  -moz-appearance: textfield;
}

无法改变其外观。请注意, 输入验证 仍然有效。

There is no way to change its appearance. Please note that the input validation still works.

在Firefox 48.0.1上,它显示如下:

On Firefox 48.0.1, it appears like this:

请将您的Firefox更新到最新版本。

Please update your Firefox to latest version.

这篇关于数字输入类型太小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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