meta屬性在HTML中佔據了很重要的位置。如:針對搜尋引擎的SEO,文件的字元編碼,設定刷新快取等。雖然有些網頁可能沒有使用meta,但是作為正規軍,我們還是有必要了解一些meta的屬性,並且能夠熟練使用它們。
default 預設值。
black 狀態列背景為黑色。
black-translucent 狀態列背景為黑色半透明。
設定為 default 或 black ,網頁內容從狀態列底部開始。
設定為 black-translucent ,網頁內容充滿整個螢幕,頂部會被狀態列遮擋。
6、iOS 圖示 rel 參數
XML/HTML Code複製內容到剪貼簿
"標題"
>"標題"
>"2>
7、iOS 啟動畫面
XML/HTML Code複製內容到剪貼簿
- iPad 的啟動畫面是不包含狀態列區域的。
- iPad 垂直螢幕 768 x 1004(標準解析度)
-
link rel="apple-touch -startup-image" sizes="768x1004"="/splash-screen-768x1004.png" />ii
- link rel="apple-touch -startup-image" sizes="1536x2008" ="/splash-screen-1536x2008.png" />Pad🎜>/>Pad🎜>/>Pad🎜>/>Pad🎜>
/>-
Pad🎜>/>Pad🎜>/>Pad🎜>B5024x 🎜>
link rel="apple-touch -startup-image" sizes="1024x748" ="/Default-Portrait-1024x748.png"
- />Pad🎜>/>Pad🎜>/>片
link rel="apple-touch -startup-image" sizes="2048x1496"> ="/splash-screen-2048x1496.png"
- /> /> />
iPhone 和 iPod touch 的啟動畫面是包含狀態列區域的。
- iPhone/iPod Touch 垂直螢幕 320x480 (標準解析度)
-
link rel="apple-touch -startup-image" href="/splash-screen-320x480.png" />iPhone/iPod Touch 垂直螢幕 640x960 (Retina)
-
link rel="apple-touch -startup-image" sizes="640x960""640x960" ="/splash-screen-640x960.png" />iPhone 5/iPod1625621625626262 月(pf31621162162162162020000 月(F116211625200002052x Retina)
-
link rel="apple-touch -startup-image" sizes="640x1136"="/splash-screen-640x1136.png" /> />
- link rel="apple-touch -startup-image" href="Startup.png" "Startup.png" 當使用者點選主畫面圖示開啟 WebApp 時,系統會顯示啟動畫面,且未設定係統會預設顯示網站的首頁截圖,當然這個體驗不是很好
-
9.不常用的
XML/HTML Code複製內容到剪貼簿
- link rel=rel=rel=rel=rel=rel=rel=rel=rel 🎜> type
=-
"application/rss xml" "RSS" href="/rss.xml""/rss.xml" >/>新增 RSS 訂閱
link rel=
rel- =rel type="image/ico" ="/favicon.ico" />加入 favicon icon 加入 favicon icon
- meta name name=name=名稱 content="telephone=no"
-
🎜>禁止數位識自動別為電話號碼
meta name name=name=名稱
- content="email=no" // 🎜>不讓android辨識信箱
meta name=
- name=name 🎜> content="webkit">啟用3600web0(webT )
meta
-
http-equiv= -UA-Compatible" content="IE=edge"避免IE使用相容模式
meta
-
name=name=name 🎜> content="true">針對一些手持設備優化,主要針對某些設備優化,主要針對某些設備舊的不辨識viewport的瀏覽器,如黑莓
meta name=name=name= content="320"> 🎜>
meta name= " content="portrait">-
meta name=name= content="yes">
- UCUC
meta name="x5-fullscreen " content="true">
QQ-
>QQQQQQp
meta name
name=
name 🎜> content
=-
"application">meta name﹀ -mode" content="app"
-
meta http-equiv content="no-siteapp" "no-siteapp" 禁止百度轉碼
- meta name=name=name -highlight" content="no">
- "no">window
meta name="keywords" content=""
-
meta name=name 🎜> content=""
-
meta name content=""
meta
- name="author" content="-06"
meta name
=-
"Copyright" content=""
-
meta http-equiv= -UA-Compatible" content="IE=edge,chrome=1">"IE=edge,chrome=1">"IE=edge,chrome=1"
- >"IE=edge,chrome=1">"IE=edge,chrome=1" 讓IE瀏覽器用最高核心渲染頁 還有用 Chrome 框架的頁面使用webkit 核心
meta name=name
=-
name=
content="yes">
meta
name-
="mobile-web -app-capable" content="yes">
meta name
- =name=name 🎜> content="webkit">
meta-
name
=
-app"
content
="app-id=myAppStoreID, affiliate-data=myAffiliateData, >> 新增智慧 App 廣告條 Smart App Banner(iOS 6 Safari)
10、sns 社交標籤
XML/HTML Code複製內容到剪貼簿
- meta property=property= > content="類型" />
-
meta property=property=property= " content="URL位址"
- >
meta property=property=property=property=
- property= " content="標題" / //
meta-
property=property=property= " content="圖片" /
meta
property=
property
=- property== content
- ="描述" /
-
-
XML/HTML Code-
複製內容到剪貼簿
-
🎜>
>
以上就是本文的全部內容,希望對大家的學習有所幫助。