標籤:轉碼 mini style 極速模式 doc 頁面 win 優先 收藏
1.<meta name="viewport" content="width=device-width, initial-scale=1.0">答:width:可視地區的寬度,值可為數字或關鍵詞device-width height:同width intial-scale:頁面首次被顯示是可視地區的縮放層級,取值1.0則頁面按實際尺寸顯示無任何縮放 maximum-scale=1.0, minimum-scale=1.0;可視地區的縮放層級, maximum-scale使用者可將頁面放大的程式,1.0將禁止使用者放大到實際尺寸之上。 user-scalable:是否可對頁面進行縮放,no 禁止縮放 2.<meta name="renderer" content="webkit">答:content的取值為webkit,ie-comp,ie-stand之一,區分大小寫,分別代表用極速模式,相容模 式,IE模式開啟。下次開啟網頁即可生效啦。 3.<meta http-equiv="Cache-Control" content="no-siteapp" />答:如第三方網站不希望某頁面被轉碼,可該頁面上添加此協議,當使用者通過移動搜尋進入第三方網站時,會直接進入原網頁。 4.<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> 答: X-UA-Compatible是IE8的一個專有<meta>屬性,它告訴IE8採用何種IE版本去渲染網頁,在html的<head>標籤中使用。 IE=edge告訴IE使用最新的引擎渲染網頁 5.具體網頁書寫?答:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!–文件類型–><html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8"> <head> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"/> <!–預設它為IE7, IE8 ,ie9 ieedge(標準)–> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!–設定網頁的檔案編碼–> <meta http-equiv="expires" content="2010/12/31 10:00:00" /> <!–離線瀏覽的到期時間–> <meta http-equiv="pragma" content="no-cache" /> <!–禁止網頁從緩衝中讀取–> <meta http-equiv="Refresh" content="5;url=index.htm" tppabs="http://www.w3cschool.cn/"> <!–網頁重新定向–> <meta http-equiv="set-cookie" content="2010/12/31 10:00:00" /> <!–設定網頁的cookie到期時間–> <meta http-equiv="Window-target" content="_top" /> <!–設定網頁中連結的目標視窗–> <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.4)" /> <!–設定網頁的開啟效果–> <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.4)" /> <!–設定網頁的關閉效果–> <meta name="keywords" content="html,設定網頁的關鍵字" /> <!–設定網頁的關鍵字,搜尋的時候優先!!!重要!!! 該資料被搜尋引擎編入索引–> <meta name="description" content=" 插入描述" /> <!–插入描述 搜尋時被搜尋引擎編入索引–> <meta name="author" content="作者" /> <!–作者–> <meta name="Copyright" content="blog.zuiniucha.com,自由著作權,任意轉載" /> <!–著作權–> <meta name="robots" content="all" /> <title> HTML頭部順序及標籤書寫規範 </title> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <!–網站表徵圖顯示在地址欄還有收藏夾–> <link rel="shortcut icon" href="http://blog.zuiniucha.com/favicon.ico" type="image/x-icon" /> <!–同上–> <link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" /> <!–連結CSS樣式表–> <script language="javascript" type="text/javascript" src="http://blog.zuiniucha.com/js.js"> </script> <!–調用JS指令檔–> </head> <body> 歡迎你! </body></html>
html代碼錶頭書寫含義