http-equiv顾名思义,相当于http的文件头作用,它可以向浏览器传回一些有用的信息,以帮助正确和精确地显示网页内容,与之对应的属性值为content,content中的内容其实就是各个参数的变量值。
<meta http-equiv="expires" content="Wed, 20 Jun 2007 22:33:00 GMT">
注意:必须使用GMT的时间格式。
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Refresh" content="2;URL=http://www.net.cn/">
<meta http-equiv="Set-Cookie" content="cookievalue=xxx;expires=Wednesday, 20-Jun-2007 22:33:00 GMT; path=/">
<meta http-equiv="Window-target" content="_top">
<meta http-equiv="content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Pics-label" contect="">
<meta http-equiv="Page-Enter" contect="revealTrans(duration=1.0,transtion= 12)">
设定离开页面时的特殊效果
<meta http-equiv="Page-Exit" contect="revealTrans(duration=1.0,transtion= 12)">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
11、关键字,给搜索引擎用的
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
原文:http://www.cnblogs.com/Sandrew/p/4735674.html