For example, the input email contains @ and. the keyboard of zhihu, such as the logon box on zhihu homepage or the number entered, is the jiugongge digital keyboard. For example, if you enter an email, @ and. the keyboard on the zhihu homepage.
Or enter a number, which is the reply content of the jiugongge digital keyboard: the iOS Webkit kernel supports some special input types, such as email, number, and url,
In addition, there are options such as autocorrect and autocapitalize.
Refer:
- Apple official development documentation: http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/InputTypes.html
- Introduction to iOS HTML input Keyboard: http://sja.co.uk/post/controlling-which-ios-keyboard-is-shown
Someone has answered the question about how 'type' is used to change the keyboard layout. I want to add a method that uses 'appearance 'to bypass the 'type' restriction:
Http://jsfiddle.net/chrisyipw/rCFcG/
If the type is search, you need to put the input in a form with an empty action, for example: