哪些型号的三星智能手机缺少 html5 输入类型=“数字"的句号? [英] What models of Samsung smartphones have missing period for html5 input type="number"?

查看:30
本文介绍了哪些型号的三星智能手机缺少 html5 输入类型=“数字"的句号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML5 有一个名为数字"的新输入类型.在大多数移动智能手机上,这会显示一个数字键盘.在 html5 之前的手机上,类型回退到文本",我们没问题.然而,在某些型号上,数字键盘没有句点,因此无法单击符号"按钮添加一个.存在此缺陷的已知模型有:

HTML5 has a new input type named "number". On most mobile smartphones this brings up a numeric keypad. On pre-html5 phones the type falls back to "text" and we are OK. Yet, on some models the numeric keypad does not have a period and one cannot click the "symbols" button to add one. Known models with this flaw are:

还有哪些型号?较旧的三星 Android 2.2 手机没有此问题.其他安卓设备如 Nabi Tab 没有这个问题.我看了 Galaxy S3 没有这个问题.

What other models? Older Samsung Android 2.2 phone does not have this problem. Other Android devices such as Nabi Tab do not have this problem. I read the Galaxy S3 did not have this problem.

查看相关讨论:

另外,没有提到的是 input type="tel" 在 iPad 上工作得很好,但不能在 iPhone 上代替数字.因此,webapp 必须确定设备型号,否则将求助于 input type="text".

Also, not noted on those is that input type="tel" works fine for iPad but does not work as a replacement for number on an iPhone. So, a webapp must determine the device model or else resort to input type="text".

哪些手机和平板电脑型号错误地将 input type="number" 解释为一个整体的非十进制输入键盘?

What phone and tablet models incorrectly interpret input type="number" as a whole, non-decimal input keyboard?

推荐答案

我发现了解决这个问题的方法.它适用于我的三星 Galaxy S2 手机,我怀疑它适用于所有遭受数字键盘上缺少小数点"问题的三星设备.希望其他使用不同三星设备的人可以检查此解决方案并报告他们的发现.

I have discovered a work around for this problem. It works for my Samsung Galaxy S2 phone and I suspect it will work for all Samsung devices that suffer from the "missing decimal point" problem on the numeric keyboard. Hopefully others with different Samsung devices can check this solution and report their findings.

不幸的是,它是基于客户端(电话所有者)的解决方案,因此从 Web 开发人员的角度来看,它并没有真正的帮助.这是对我有用的解决方案:

Unfortunately, it is a client based (phone owner) solution so it does not really help from a web developer standpoint. Here is the solution that worked for me:

  1. 在浏览器中点击菜单图标(手机左下角)
  2. 选择设置
  3. 选择隐私和安全
  4. 向下滚动并取消选中记住表单数据"并选择清除表单数据"
  5. 点击确定确认

执行此程序后,数字小键盘应显示一个标有 .- 的额外按钮也就是说,减号和小数点都使用同一个按钮.双击此按钮可获得减号(前提是该字段当前为空),单击可获得小数点.

After following this procedure, the numeric keypad should show an extra button labelled .- That is, the same button is used for both minus signs and decimal points. Double-click this button to get a minus sign (provided the field is currently empty) and single click to get a decimal point.

这篇关于哪些型号的三星智能手机缺少 html5 输入类型=“数字"的句号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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