页面基本设置
<meta name="description" content="页面描述,控制在150字以内" />
<meta name="keywords" content="关键字列表" />
<meta name="author" content="basecss, i@basecss.net" />
<link rel="shortcut icon" type="image/icon" href="icon.ico" />
http 信息设置
<meta http-equiv="content-language" content="zh-CN" />
<meta http-equiv="refresh" content="3; URL=http://www.baidu.com" />
<meta http-equiv="content-type" content="UTF-8" />
<meta http-equiv="expires" content="GMT 格式时间" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-control" content="max-age=5" />
<meta http-equiv="set-cookie" content="cookieName=cookieValue;expires=GMT 格式时间;path=/" />
<meta http-equiv="page-enter" content="blandtrans(duration=0.5)" />
<meta http-equiv="page-exit" content="revealtrans(duration=0.5,transtion=1)" />
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
搜索引擎相关设置
<meta name="visit-after" content="10 days">
<meta name="robots" content="index, follow" />
移动端开发
移动开发基本设置
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1, minium-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-title" content="My App" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-status-bar-style" content="black-translucent" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL" />
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
iOS 图标
<link rel="apple-touch-icon" href="icon57.png" sizes="57x57" />
<link rel="apple-touch-icon" href="icon72.png" sizes="72x72" />
<link rel="apple-touch-icon" href="icon76.png" sizes="76x76" />
<link rel="apple-touch-icon" href="icon114.png" sizes="114x114" />
<link rel="apple-touch-icon" href="icon120.png" sizes="120x120" />
<link rel="apple-touch-icon" href="icon144.png" sizes="144x144" />
<link rel="apple-touch-icon" href="icon152.png" sizes="152x152" />
iOS启动画面
<link rel="apple-touch-startup-image" sizes="768x1004" href="/splash-screen-768x1004.png" />
<link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png" />
<link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png" />
<link rel="apple-touch-startup-image" sizes="2048x1496" href="/splash-screen-2048x1496.png" />
<link rel="apple-touch-startup-image" href="/splash-screen-320x480.png" />
<link rel="apple-touch-startup-image" sizes="640x960" href="/splash-screen-640x960.png" />
<link rel="apple-touch-startup-image" sizes="640x1136" href="/splash-screen-640x1136.png" />
其他常见设置
<meta name="msapplication-TileColor" content="#000"/>
<meta name="msapplication-TileImage" content="icon.png"/>
<link rel="shortcut icon" sizes="128x128" href="icon.png" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" />
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />