Ios,android using HTML5 Development issues Summary

Source: Internet
Author: User

Viewport Control Application Screen properties

Viewport is a meta tag for mobile web, and its main properties are as follows

<meta name= "viewport" content= "Width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, User-scalable=no "/>
    • width = [Pixel_value | device-width]

Controls the width of the viewport, a value that can be specified, or a special value, such as device-width as the width of the device (in pixels of the CSS when scaled to 100%).

    • Height = [Pixel_value | device-height]
    • Initial-scale = Float_value

The initial zoom ratio, which is the scale at which the page is first load.

    • Minimum-scale = Float_value

Maximum scale to which the user is allowed to zoom

    • Maximum-scale = Float_value

The minimum scale to allow the user to zoom

    • user-scalable = [yes | no]

Whether the user can manually scale

webkittouchcallout Disable native popup menu

The Webkittouchcallout property of CSS3 can control whether this native behavior is executed

-webkit-touch-callout: [Auto|none]

Webkituserselect prohibit users from selecting

If a user presses the text content of a Web page, the selected behavior will appear, providing the ability to copy text.

The Webkituserselect property of CSS3 can prohibit this default behavior.

-webkit-user-select: [Auto|none]

Format-detection

/* Cancel identification of email address */<meta name= "format-detection" content= "Email=no;" >/* de-Identify address */<meta name= "format-detection" content= "Address=no;" >/* de-Identify the phone */<meta name= "format-detection" content= "Telephone=no"/>

  

iOS remove button native style-webkit-appearance

-webkit-appearance:none;

  




Ios,android using HTML5 Development issues Summary

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.