HTML表单和移动网络浏览器问题 [英] Html forms and mobile web browsers problem

查看:180
本文介绍了HTML表单和移动网络浏览器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

移动键盘(Android版IPhone)没有标签按钮。这就是为什么进入被pressed当本地应用程序转到下一个字段。但是浏览器表单提交输入时pressed。

Mobile keyboard (Android IPhone) has no tab button. That is why native application go to next field when enter is pressed. However browser forms are submitted when enter is pressed.

我该如何解决这个问题呢?

How can I solve this problem?

推荐答案

使用的 的tabIndex 得当,它应该工作就像使用本地应用程序。

Use tabindex properly and it should work just like with native applications.

顺便说一句,在Android上至少,本机应用程序不需要做什么特别的得到这种行为(顶多必须指定 nextFocusForward ,如果布局过于复杂和Android不能明白这一点本身)。

By the way, on Android at least, native apps don't have to do anything special to get this behavior (at most they have to specify nextFocusForward, if the layout is too complicated and Android can't figure that out by itself).

这篇关于HTML表单和移动网络浏览器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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