1. 程式人生 > >移動端的一些頭部標簽

移動端的一些頭部標簽

desc 識別 min 檢測 arp 點擊 必須 des htm

1.meta標簽http-equiv屬性語法格式:

  

		<meta http-equiv="expires" content="wed,20 Jun 2007 22:33:00 GMT"/>
		<!--expires  期限,可用於網頁的到期時間,一旦網頁過期,必須到服務器上重新傳輸-->

2.content-type (顯示字符集的設定) 設定頁面使用的字符集

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

3.keywords (關鍵字)

		<meta http-equiv="Keywords" content="keywords1,keywords2...."/>

4.description (描述)

		<meta http-equiv="description" content="this is my page"/>

5.format-detection 格式檢測

    1》 忽略將頁面中的數字識別為電話號碼

		<meta http-equiv="format-detection" content="telephone=no"/>

    2》告訴設備不識別郵箱,點擊之後不自動發送。

		<meta http-equiv="format-detection" content="email=no"/>

6.viewport

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

  initial-scale:[0.0-1.0] 定義初始縮放比例

  minimum-scale:[0.0-1.0] 定義縮小最小比例

  maximum-scale:[0.0-1.0] 定義放大最大比例

  user-scalable: yes/no 用戶允不允許手動縮放頁面

 

移動端的一些頭部標簽