常用的meta标签总结
<!-- 關(guān)鍵字,搜所引擎 SEO -->
<meta http-equiv="keywords" content="關(guān)鍵字1,關(guān)鍵字2,...">
<!-- 頁面描述 -->
<meta http-equiv="description" content="網(wǎng)頁描述">
<!-- content的取值為webkit,ie-comp,ie-stand之一,區(qū)分大小寫,分別代表用webkit內(nèi)核,IE兼容內(nèi)核,IE標(biāo)準(zhǔn)內(nèi)核。 -->
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<!-- 若頁面需默認(rèn)用極速核,增加標(biāo)簽: -->
<meta name="renderer" content="webkit">
<!-- 若頁面需默認(rèn)用ie兼容內(nèi)核,增加標(biāo)簽: -->
<meta name="renderer" content="ie-comp">
<!-- 若頁面需默認(rèn)用ie標(biāo)準(zhǔn)內(nèi)核,增加標(biāo)簽: -->
<meta name="renderer" content="ie-stand">
<!-- 如果安裝了GCF,則使用GCF來渲染頁面,如果沒有安裝GCF,則使用最高版本的IE內(nèi)核進(jìn)行渲染。
X-UA-Compatible:這是個(gè)是IE8的專用標(biāo)記,用來指定IE8瀏覽器去模擬某個(gè)特定版本的IE瀏覽器的渲染方式(比如人見人煩的IE6),以此來解決部分兼容問題。 -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
<!-- 強(qiáng)制頁面在當(dāng)前窗口以獨(dú)立頁面顯示。 -->
<meta http-equiv="Window-target" content="_top">
<!-- 自動(dòng)刷新,并指向新的頁面 -->
<meta http-equiv="Refresh" content="2;URL=http://">
<!-- 禁止瀏覽器緩存 -->
<!-- 是用于設(shè)定禁止瀏覽器從本地機(jī)的緩存中調(diào)閱頁面內(nèi)容,設(shè)定后一旦離開網(wǎng)頁就無法從Cache中再調(diào)出
用法: -->
<meta http-equiv="pragram" content="no-cache">
<!-- 清除緩存(再訪問這個(gè)網(wǎng)站要重新下載!) -->
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<!-- 設(shè)定網(wǎng)頁的到期時(shí)間 -->
<meta http-equiv="expires" content="0">
<!-- 手機(jī)端 -->
<meta name="format-detection" content="telphone=no, email=no"/>
<!-- 忽略頁面中的數(shù)字識(shí)別為電話,忽略email識(shí)別 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<!-- 設(shè)置蘋果工具欄顏色 -->
<!-- 不讓百度轉(zhuǎn)碼 -->
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 不緩存 -->
<meta http-equiv="cache-control" content="no-cache" />
<!-- 初始化設(shè)備 -->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
<!-- 網(wǎng)站開啟對(duì)iphone私有 web app 程序的支持 -->
<meta content="yes" name="apple-mobile-web-app-capable" />
<!-- 改變頂部狀態(tài)條的顏色 iphone私有的屬性-->
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
?
來源:http://www.qdfuns.com/notes/17169/7664efa421e117402f6b8d7eb2b5b4ea.html
轉(zhuǎn)載于:https://www.cnblogs.com/heyiming/p/6229395.html
總結(jié)
以上是生活随笔為你收集整理的常用的meta标签总结的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows 下XAMPP 使用Ngi
- 下一篇: 使用DeviceOne实现微信小程序功能