IPhone, ipad default button style issues in web App development

Source: Internet
Author: User

WebApp development process, with HTML5+CSS3 is very convenient, and can be easily compiled to Android iOS and other platforms, but iOS need to deal with it alone, or there will be some imagined problems. Here's a look at the solutions to various problems

Method/Step
  1. IPhone, ipad default button style issues

    Workaround add a-webkit-appearance:none to the button element; specific code

    Input[type= "button"], input[type= "Submit"], input[type= "reset"] {

    -webkit-appearance:none;

    }

  2. Hide Safari User Bar

    To be more like native apps, we can also hide the Safari's user and address bars, called standalone mode, and add the following meta into this mode:

    <meta name= "apple-mobile-web-app-capable" content= "yes"/>

  3. Icon

    The icon for iOS is in PNG format, which provides the Apple-touch-icon and apple-touch-icon-precomposed two icons, using the following methods:

    <link rel= "Apple-touch-icon" href= "/apple-touch-icon.png"/>

    <link rel= "apple-touch-icon-precomposed" href= "/apple-touch-icon-precomposed.png"/>

  4. Digital disable conversion to phone number

    <meta name= "format-detection" content= "Telephone=no"/>

  5. Delete the default Apple toolbar and menu bar

    <meta name= "apple-mobile-web-app-capable" content= "yes"/>

  6. Control the status bar display style

    <meta name= ' apple-mobile-web-app-status-bar-style ' content= "default"/> Default style <meta name= " Apple-mobile-web-app-status-bar-style "content=" Black "/> <meta name=" Apple-mobile-web-app-status-bar-style "content=" black-translucent "/> Transparent

IPhone, ipad default button style issues in web App development

Related Article

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.