1. 程式人生 > >移動端 html5 meta標籤的設定含義

移動端 html5 meta標籤的設定含義

html5 meta標籤的設定含義
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/><!-- 刪除蘋果預設的工具欄和選單欄 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/><!-- 設定蘋果工具欄顏色 -->
    <meta name="format-detection" content="telephone=no, email=no"/><!--忽略頁面中的數字識別為電話,忽略email識別 -->
    <!-- 啟用360瀏覽器的極速模式(webkit) -->
    <meta name="renderer" content="webkit">
    <!-- 避免IE使用相容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 針對手持裝置優化,主要是針對一些老的不識別viewport的瀏覽器,比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- 微軟的老式瀏覽器 -->
    <meta name="MobileOptimized" content="320">
    <!-- uc強制豎屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ強制豎屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC強制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ強制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC應用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ應用模式 -->
    <meta name="x5-page-mode" content="app">
    <!-- windows phone 點選無高光 -->
    <meta name="msapplication-tap-highlight" content="no">