国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > WEB開發 > 正文

meta常用標簽

2024-04-27 15:07:37
字體:
來源:轉載
供稿:網友

meta元素共有三個可選屬性(http-equiv、name和scheme)和一個必選屬性(content)。

可選屬性

屬性描述
http-equivcontent-type / expire / refresh / set-cookie/PRagma/Content-Script-Type把content屬性關聯到HTTP頭部
nameauthor / description / keyWords / generator / revised / others把 content 屬性關聯到一個名稱
schemesome_text定義用于翻譯 content 屬性值的格式

必選屬性

屬性描述
contentsome_text定義與 http-equiv 或 name 屬性相關的元信息

name屬性

<!-- 頁面作者 -->

<meta name="author" content="author name" />

<!-- 頁面描述 -->

<meta name="description" content="meta元素共有三個可選屬性(不超過150字符)" />

<!-- 頁面關鍵詞 -->

<meta name="keywords" content="meta標簽總結,meta標簽" />

<!-- 頁面生成器 -->

<meta name="generator" content="hexo" />

<!-- 頁面修改信息 -->

<meta name="revised" content="story,2015/07/22" />

<!-- 版權信息 -->

<meta name="copyright" content="All Rights Reserved" />

<!-- 頁面爬蟲設置 -->

<meta name="robots" content="index,follow" />

<!-- robots的content取值 -->

<!-- all:文件將被檢索,且頁面上的鏈接可以被查詢 -->

<!-- none:文件將不被檢索,且頁面上的鏈接不可以被查詢 -->

<!-- index:文件將被檢索 -->

<!-- follow:頁面上的鏈接可以被查詢 -->

<!-- noindex:文件將不被檢索,但頁面上的鏈接可以被查詢 -->

<!-- nofollow:文件將被檢索,但頁面上的鏈接不可以被查詢 -->

<!--window phone 點擊無高光-->

<meta name="msapplication-tap-highlight" content="no" />

<!--關閉Chrome瀏覽器下翻譯插件-->

<meta name="google" content="notranslate" />

http-equiv

<!-- 聲明文檔使用的字符編碼-->

<meta charset='utf-8'/>

<!-- 字符編碼 -->

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />

<!-- 頁面到期時間 -->

<meta http-equiv="expire" content="Wed,22Jul201511:11:11GMT" />

<!-- 頁面重刷新,0秒后刷新并跳轉 -->

<meta http-equiv="refresh" content="0;URL=''" />

<!-- cookie設置 -->

<meta http-equiv="set-cookie" content="cookie value=xxx;expires=Wed,22-Jul-201511:11:11GMT;path=/" />

<!-- 腳本類型 -->

<meta http-equiv="Content-Script-Type"Content="text/javascript">

<!-- 禁止從本地緩存中讀取頁面 -->

<meta http-equiv="Pragma"content="no-cache">

<!--優先使用IE最新版本和Chrome-->

<meta http-equiv='X-UA-Compatible' content="IE=edge,chrome=1"/>

<!--禁止百度轉碼-->

<meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> 

移動端

<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>

<!-- viewport的content取值 -->

<!-- width:寬度(數值 / device-width)(200~10000,默認為980px) -->

<!-- height:高度(數值 / device-height)(223~10000) -->

<!-- initial-scale:初始縮放比例 (0~10) -->

<!-- minimum-scale:允許用戶縮放到的最小比例 -->

<!-- maximum-scale:允許用戶縮放到的最大比例 -->

<!-- user-scalable:是否允許用戶縮放 (no/yes)  -->

 

<!-- 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">

 

<!-- IOS啟用 WebApp 全屏模式 -->

<meta name="apple-mobile-web-app-capable" content="yes" />

<!-- IOS全屏模式下隱藏狀態欄/設置狀態欄顏色 content的值為default | black | black-translucent  -->

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

<!-- IOS添加到主屏后的標題(ios6新增) -->

<meta name="apple-mobile-web-app-title" content="標題">

<!-- IOS添加智能 App 廣告條 Smart App Banner -->

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">

 

<!-- 去除iphone 識別數字為號碼 -->

<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">


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 琼中| 东乡族自治县| 隆德县| 湟源县| 嘉兴市| 越西县| 东宁县| 都江堰市| 科技| 新野县| 太仆寺旗| 迭部县| 恭城| 曲沃县| 双鸭山市| 江油市| 通渭县| 乌恰县| 襄汾县| 邓州市| 巴彦县| 陵水| 新蔡县| 镶黄旗| 禄劝| 垦利县| 无锡市| 潮安县| 象山县| 赤壁市| 治县。| 浠水县| 鹤壁市| 平阴县| 筠连县| 马边| 黄石市| 崇信县| 龙南县| 迁安市| 济宁市|