谷歌浏览器在Android(只有Android的)不允许使用十进制型号和步长="任何" [英] Google Chrome on Android (and only Android) Does not allow Decimal with type number and step="any"

查看:101
本文介绍了谷歌浏览器在Android(只有Android的)不允许使用十进制型号和步长="任何"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我不知道这是否是一个错误,对Android键盘有些古怪,有问题等。

I have a problem that I'm not sure if it is a bug, some weirdness about the android keyboard, etc.

假设你有这个输入框的地方:

Suppose you have this input box somewhere:

    <input type='number' step='any' >

在默认的ICS Android浏览器,在Safari移动浏览器,iOS的Chrome浏览器(也可能是其他人),这不正是你所期望的:它带来的(因为步)与数字和小数点的键盘。

On the default ICS android browser, the Safari mobile browser, iOS Chrome (and probably others), this does exactly what you would expect: it brings up a keyboard with both numbers and a decimal point (because of the step).

不过在Chrome上的Andr​​oid(正如我说,只有这个版本),它带来了不带小数点数字键盘。

However on Chrome on android (and as I said only this version), it brings up a number pad with no decimal.

有谁知道一个解决办法?

Does anyone know a workaround?

其他详细信息

有似乎仅限于三星键盘和谷歌浏览器的组合。以下工作:

It appears to be limited to a combination of the Samsung keyboard and Google Chrome. The following works:

  • 在谷歌浏览器与第三方键盘
  • 在主浏览器和Firefox与三星键盘

所以,看来三星的键盘和Chrome两种,导致了问题的唯一组合。

So, it seems only the combination of both the Samsung keyboard and Chrome that causes a problem.

推荐答案

这个问题看起来是固定的 HTTPS:但是,该补丁还没有使它成为//$c$c.google.com/p/chromium/issues/detail ID = 151738#C17在Chrome发布呢。

This issue appears to be fixed https://code.google.com/p/chromium/issues/detail?id=151738#c17 but the fix hasn't made it into a Chrome release yet.

如果你没有很多用户,有两种解决方法:

If you don't have many users, there are two workarounds:

  1. 要求用户安装的谷歌键盘并启用它 - 看到的https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin

要求用户使用内置的浏览器(要求用户使用的应用程序,标有世界图标互联网)。

Ask user to use the native browser (ask user to use the App with the world icon labelled "Internet").

这个错误应该不会影响使用的WebView应用程序,因为之前奇巧的WebView中使用的原生浏览器(我认为这是正确的!)。

The bug shouldn't affect Apps that use WebView, because before KitKat WebView used the native browser (I think that is correct!).

这篇关于谷歌浏览器在Android(只有Android的)不允许使用十进制型号和步长=&QUOT;任何&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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