HTML中的meta設置方法
發表時間:2023-09-21 來源:明輝站整理相關軟件相關文章人氣:
[摘要]這次給大家帶來HTML中的meta設置方法,HTML中設置meta的注意事項有哪些,下面就是實戰案例,一起來看一下。<meta name="viewport" content="width=device-width, initial-scale=1.0, use...
這次給大家帶來HTML中的meta設置方法,HTML中設置meta的
注意事項有哪些,下面就是實戰案例,一起來看一下。
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#6f9ddc">
<!-- 頁面的編碼方式 -->
<meta charset="utf-8">
<!-- 優先使用最新版本 IE 和 Chrome -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 搜索引擎優化,頁面關鍵詞,每個網頁應具有描述該網頁內容的一組唯一的關鍵字 -->
<meta name="keywords" content="">
<!-- 搜索引擎優化,頁面描述,每個網頁都應有一個不超過 150 個字符且能準確反映網頁內容的描述標簽 -->
<meta name="description" content="">
<!-- 優化移動瀏覽器的顯示,縮放比例默認為1,不允許手動縮放。如果不是響應式網站,不要使用initial-scale或者禁用縮放。 -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- 使用 webkit 內核渲染網站 -->
<meta name="renderer" content="webkit">
<!-- 禁止百度轉碼 -->
<meta http-equiv="Cache-Control" content="no-siteapp">
<!-- 添加到主屏后的圖標 -->
<!-- <link rel="icon" type="image/png" href="assets/i/favicon.png"> -->
<!-- 添加到主屏后-啟用 WebApp 全屏模式(Android) -->
<!-- <meta name="mobile-web-app-capable" content="yes"> -->
<!-- 添加到主屏后的圖標(Android) -->
<!-- <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> -->
<!-- 添加到主屏后-啟用 WebApp 全屏模式(iOS) -->
<!-- <meta name="apple-mobile-web-app-capable" content="yes"> -->
<!-- 添加到主屏后-設置狀態欄的背景顏色(iOS) -->
<!-- <meta name="apple-mobile-web-app-status-bar-style" content="black"> -->
<!-- 添加到主屏后的標題(iOS) -->
<!-- <meta name="apple-mobile-web-app-title" content="南航辦公自動化" /> -->
<!-- 添加到主屏后的圖標(iOS) -->
<!-- <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> -->
<!-- 添加到主屏后的圖標(win8) -->
<!-- <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> -->
<!-- 添加到主屏后-設置狀態欄的背景顏色(win8) -->
<!-- <meta name="msapplication-TileColor" content="#0e90d2"> -->
<!-- 關閉移動端手機號碼識別(iOS) -->
<meta name="format-detection" content="telephone=no">
<!-- 關閉移動端郵箱識別(Android) -->
<meta name="format-detection" content="email=no">
相信看了這些案例你已經掌握了方法,更多精彩請關注php中文網其它相關文章!
相關閱讀:
HTML文本格式化的實例詳解
html里的列表標簽有哪些?
html標題,段落,換行,水平線,特殊字符應該如何使用
以上就是HTML中的meta設置方法的詳細內容,更多請關注php中文網其它相關文章!
網站建設是一個廣義的術語,涵蓋了許多不同的技能和學科中所使用的生產和維護的網站。