-
<meta name="robots" content="index, follow">
搜索引擎看到限制一般就會按照去做,這是一種約定,當然也可以不遵守這個約定- none:搜索引擎將忽略此網頁,等價于noindex,nofollow。
- noindex:搜索引擎不索引此網頁。
- nofollow:搜索引擎不繼續通過此網頁的鏈接索引搜索其它的網頁。
- all:搜索引擎將索引此網頁與繼續通過此網頁的鏈接索引,等價于index,follow。
- index:搜索引擎索引此網頁。
- follow:搜索引擎繼續通過此網頁的鏈接索引搜索其它的網頁。
<meta name="format-detection">
用于檢測html里的一些格式,默認均為 yes,主要是有以下幾個設置:
<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">
<meta name="apple-mobile-web-app-capable" content="yes" />
網站開啟對web app程序的支持。<meta name="apple-mobile-web-app-status-bar-style" content="black">
在web app應用下狀態條(屏幕頂部條)的顏色;
默認值為default(白色),可以定為black(黑色)和black-translucent(灰色半透明)。
注意:若值為“black-translucent”將會占據頁面位置,浮在頁面上方(會覆蓋頁面20px高度–iphone4和itouch4的Retina屏幕為40px)。<meta name="apple-touch-fullscreen" content="yes">
"添加到主屏幕“后,全屏顯示
content有兩個值”yes”和”no”,默認為''no'',顯示蘋果工具欄和菜單欄。
iOS用rel="apple-touch-icon",android 用rel="apple-touch-icon-precomposed"。這樣就能在用戶把網頁存為書簽時,在手機HOME界面創建應用程序樣式的圖標。
- 禁用瀏覽器緩存效果,但不一定支持
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="refresh" content="30,url=/''>
30S后跳轉到目標url,url無值時即刷新當前頁面<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
移動端頁面自適應視窗大小,并禁止雙指縮放<meta http-equiv="x-ua-compatible" content="IE=Edge">
將采用瀏覽器支持的最高文檔模式渲染頁面