001-移動端頁面頭部設定

來源:互聯網
上載者:User

標籤:1.0   發送   images   art   compose   檢測   意思   跳轉   bsp   

1 <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">2 <meta name="apple-mobile-web-app-capable" content="yes">3 <meta name="apple-touch-fullscreen" content="yes">4 <meta name="apple-mobile-web-app-status-bar-style" content="black">5 <meta name="format-detection" content="telephone=no">6 <title>Title</title>7 <link rel="apple-touch-icon-precomposed" href="images/">8 <link rel="apple-touch-startup-image" href="images/">9 <link rel="stylesheet" href="css/style.css">

 

第2、3行都是全屏

第4行是電池電量條的背景顏色不讓手機識別

這meta的作用就是刪除預設的蘋果工具列和功能表列。

content有兩個值”yes”和”no”,當我們需要顯示工具列和功能表列時,這個行meta就不用加了,預設就是顯示。

第5行format-detection翻譯成中文的意思是“格式檢測”

一、telephone

meta name="format-detection" content="telephone=no"meta name="format-detection" content="email=no"meta name="format-detection" content="adress=no" 也可以連寫:meta name="format-detection" content="telephone=no,email=no,adress=no"telephone=no就禁止了把數字轉化為撥號連結!
telephone=yes就開啟了把數字轉化為撥號連結,要開啟轉化功能,這個meta就不用寫了,在預設是情況下就是開啟!

二、email

告訴裝置不識別郵箱,點擊之後不自動發送

email=no禁止作為郵箱地址!
email=yes就開啟了把文字預設為郵箱地址,這個meta就不用寫了,在預設是情況下就是開啟!

三、adress

adress=no禁止跳轉至地圖!
adress=yes就開啟了點擊地址直接跳轉至地圖的功能,在預設是情況下就是開啟!

001-移動端頁面頭部設定

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.