1.meta標(biāo)簽http-equiv屬性語法格式:
<meta http-equiv="expires" content="wed,20 Jun 2007 22:33:00 GMT"/> <!--expires 期限,可用于網(wǎng)頁的到期時(shí)間,一旦網(wǎng)頁過期,必須到服務(wù)器上重新傳輸-->
2.content-type (顯示字符集的設(shè)定) 設(shè)定頁面使用的字符集
<meta http-equiv="content-type" content="text/html" charset="utf-8"/>
3.keywords (關(guān)鍵字)
<meta http-equiv="Keywords" content="keywords1,keywords2...."/>
4.description (描述)
<meta http-equiv="description" content="this is my page"/>
5.format-detection 格式檢測
1》 忽略將頁面中的數(shù)字識別為電話號碼
<meta http-equiv="format-detection" content="telephone=no"/>
2》告訴設(shè)備不識別郵箱,點(diǎn)擊之后不自動發(fā)送。
<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 用戶允不允許手動縮放頁面