meta标签总结

1.meta标记用于定义文件信息,对网页文件进行说明,便于搜索引擎查找。放置<head></head>之间

2.设置关键字:<meta name="keywords" content="value" /> 多个关键字可以用“,”分隔
3.设置描述:<meta name="description" content="value" />
4.设置作者:<meta name="author" content="作者名“ />
5.设置字符集:<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6.设置定时跳转:<meta http-equiv="refresh" content="2;URL=http://www.baidu.com" />
7.设置页面不缓存
   
<!-- 禁止浏览器从本地缓存中调阅页面。-->
<meta http-equiv="pragram" content="no-cache">

<!--网页不保存在缓存中,每次访问都刷新页面。-->
<meta http-equiv="cache-control" content="no-cache, must-revalidate">

<!--同上面意思差不多,必须重新加载页面-->
<meta http-equiv="expires" content="0">

<!--网页在缓存中的过期时间为0,一旦网页过期,必须从服务器上重新订阅-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 

8.设置IE文档模式:
<meta http-equiv="X-UA-Compatible" content ="IE=edge,chrome=1" />
posted @ 2015-06-23 17:46  溪木  阅读(184)  评论(0编辑  收藏  举报