iphone H5 input type= "search" does not show searching solution

Source: Internet
Author: User
H5 input type= "search" does not display the searching solution H5 input type= "search" does not show the solution

Open the H5 page in the browser of your iOS (ipad, iphone, etc.) system. The following wording:

<input type= "Search" name= "search" id= "search" >

The keyboard for the above device still displays "line break".

The workaround is as follows: Nesting a layer of form outside of input:

<form action= "" >    <input type= "search" name= "search" id= "search" ></form>

Where form must have an action.

If you do not want action, because it may affect the commit logic of your input, you can rewrite the onsubmit onclick method to implement it.

You can also use the simple method: action= "Javascript:return true;".

Transferred from: http://www.myexception.cn/HTML-CSS/2003836.html

iphone H5 input type= "search" does not show searching solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.