Mobile H5 Header definition Style

Source: Internet
Author: User

 <Metacontent= "width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0"name= "Viewport"/> <Metaname= "Apple-mobile-web-app-capable"content= "No" /> <Metaname= "Format-detection"content= "Telephone=no,email=no,adress=no"/>

<meta content= "width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name= "viewport"/>

1. Width=device-width width: The width of the viewable area, the value can be a number or keyword device-width (device width)

2. initial-scale=1.0, Intial-scale: The first time the page is displayed is the zoom level of the viewable area, and the value of 1.0 is displayed by the actual size without any scaling. ( initial scale )

3. maximum-scale=1.0, minimum-scale=1.0; the zoom level of the viewable area, maximum-scale the user can enlarge the page of the program, 1.0 will prohibit the user to enlarge the actual size above.

4. User-scalable: Whether the page can be scaled, no prohibit scaling

5. Apple-mobile-web-app-capable: This meta function is to delete the default Apple toolbar and menu bar.

The content has two values "yes" and "no", and when we need to display the toolbar and menu bar, the row meta is not added, the default is display.

6. <meta name= "format-detection" content= "Telephone=no,email=no,adress=no"/>

Format-detection translated into Chinese means "format detection", as the name implies, it is used to detect some of the HTML format, the Format-detection property about meta is mainly the following several settings:meta name= "format-detection" content= "Telephone=no"meta name= "format-detection" content= "Email=no"meta name= "format-detection" content= "Adress=no"You can also ligatures: Meta name= "format-detection" content= "Telephone=no,email=no,adress=no"here are the specific functions of each setting: First, telephone

You write a bunch of numbers without a link style, and the iphone will automatically add your text link style, and click on this number will automatically dial! Want to get rid of this dial-up link how to do it? Then our meta is prowess again, the code is as follows:

Telephone=no banned the conversion of numbers to dial-up links!
Telephone=yes turned on the number into a dial-up link, to turn on the conversion function, this meta will not have to write, in the default is the case is open!

Second, email

Tell the device not to recognize the mailbox and not send it automatically after clicking

Email=no prohibited as an email address!
Email=yes opened the text default to the email address, this meta will not have to write, in the default is the case is open!

Iii. adress

adress =no no jump to the map!
adress=yes opens the click Address directly to the function of the map, the default is the case is open!

Mobile H5 Header definition Style

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.