...
如果< input>
标签位于< form>
标签。
因此,如果您之后使用JavaScript访问您的表单元素,您可以省略< form>
标签。
'Go'按钮:
< form action =...方法= ... >
< input type =text>< / input>
< / form>
$ b
'返回'按钮:
< input type =text>< / input>
Managing the iOS keyboard for HTML <input>
forms (used in UIWebView
) is well known, i.e. <input type="tel"></input>
for telephone numbers.
https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html
But I was wondering about the keyboard's blue 'Go' button.Sometimes the keyboard has a blue 'Go' button, sometimes the keyboard has a gray return button.Is there any opportunity to control this behavior programmatically?
解决方案
Aha...
The 'Go' button is only shown, if the <input>
tag is inside a <form>
tag.So, if you access your form elements afterwards with i.e. JavaScript, you can omit <form>
tags.
'Go' button:
<form action="..." method="...">
<input type="text"></input>
</form>
'return' button:
<input type="text"></input>
这篇关于用于HTML输入表单的iOS键盘中的前往与返回按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!