﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-似水流云-随笔分类-转载</title><link>http://www.blogjava.net/gaoyijun/category/36923.html</link><description>柳暗花明又一村</description><language>zh-cn</language><lastBuildDate>Wed, 21 Jan 2009 15:02:38 GMT</lastBuildDate><pubDate>Wed, 21 Jan 2009 15:02:38 GMT</pubDate><ttl>60</ttl><item><title>META http-equiv 大全</title><link>http://www.blogjava.net/gaoyijun/archive/2009/01/20/252069.html</link><dc:creator>Eason</dc:creator><author>Eason</author><pubDate>Tue, 20 Jan 2009 08:44:00 GMT</pubDate><guid>http://www.blogjava.net/gaoyijun/archive/2009/01/20/252069.html</guid><wfw:comment>http://www.blogjava.net/gaoyijun/comments/252069.html</wfw:comment><comments>http://www.blogjava.net/gaoyijun/archive/2009/01/20/252069.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/gaoyijun/comments/commentRss/252069.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/gaoyijun/services/trackbacks/252069.html</trackback:ping><description><![CDATA[转载自：http://www.cnblogs.com/jerryshi/archive/2008/10/14/1310611.html<br />
META http-equiv 大全<br />
HTTP-EQUIV类似于HTTP的头部协议，它回应给浏览器一些有用的信息，以帮助正确和精确地显示网页内容。常用的HTTP-EQUIV类型有：
<p>1、Content-Type和Content-Language (显示字符集的设定)</p>
<p>说明：设定页面使用的字符集，用以说明主页制作所使用的文字已经语言，浏览器会根据此来调用相应的字符集显示page内容。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Content-Type&#8221; Content=&#8221;text/html; Charset=gb2312&#8243;&gt;</p>
<p>&lt;Meta http-equiv=&#8221;Content-Language&#8221; Content=&#8221;zh-CN&#8221;&gt;</p>
<p>注意：该META标签定义了HTML页面所使用的字符集为GB2132，就是国标汉字码。如果将其中的&#8220;charset=GB2312&#8221;替换成&#8220;BIG5&#8221;，则该页面所用的字符集就是繁体中文Big5码。当你浏览一些国外的站点时，IE浏览器会提示你要正确显示该页面需要下载xx语支持。这个功能就是通过读取HTML页面META标签的Content-Type属性而得知需要使用哪种字符集显示该页面的。如果系统里没有装相应的字符集，则IE就提示下载。其他的语言也对应不同的charset，比如日文的字符集是&#8220;iso-2022-jp &#8221;，韩文的是&#8220;ks_c_5601&#8221;。</p>
<p>Content-Type的Content还可以是：text/xml等文档类型；</p>
<p>Charset选项：ISO-8859-1(英文)、BIG5、UTF-8、SHIFT-Jis、Euc、Koi8-2、us-ascii, x-mac-roman, iso-8859-2, x-mac-ce, iso-2022-jp, x-sjis, x-euc-jp,euc-kr, iso-2022-kr, gb2312, gb_2312-80, x-euc-tw, x-cns11643-1,x-cns11643-2等字符集；Content-Language的Content还可以是：EN、FR等语言代码。</p>
<p>2、Refresh (刷新)</p>
<p>说明：让网页多长时间（秒）刷新自己，或在多长时间后让网页自动链接到其它网页。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Refresh&#8221; Content=&#8221;30&#8243;&gt;</p>
<p>&lt;Meta http-equiv=&#8221;Refresh&#8221; Content=&#8221;5; Url=http://www.downme.com&#8221;&gt;</p>
<p>注意：其中的5是指停留5秒钟后自动刷新到URL网址。</p>
<p>3、Expires (期限)</p>
<p>说明：指定网页在缓存中的过期时间，一旦网页过期，必须到服务器上重新调阅。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Expires&#8221; Content=&#8221;0&#8243;&gt;</p>
<p>&lt;Meta http-equiv=&#8221;Expires&#8221; Content=&#8221;Wed, 26 Feb 1997 08:21:57 GMT&#8221;&gt;</p>
<p>注意：必须使用GMT的时间格式，或直接设为0(数字表示多少时间后过期)。</p>
<p>4、Pragma (cach模式)</p>
<p>说明：禁止浏览器从本地机的缓存中调阅页面内容。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Pragma&#8221; Content=&#8221;No-cach&#8221;&gt;</p>
<p>注意：网页不保存在缓存中，每次访问都刷新页面。这样设定，访问者将无法脱机浏览。</p>
<p>5、Set-Cookie (cookie设定)</p>
<p>说明：浏览器访问某个页面时会将它存在缓存中，下次再次访问时就可从缓存中读取，以提高速度。当你希望访问者每次都刷新你广告的图标，或每次都刷新你的计数器，就要禁用缓存了。通常HTML文件没有必要禁用缓存，对于ASP等页面，就可以使用禁用缓存，因为每次看到的页面都是在服务器动态生成的，缓存就失去意义。如果网页过期，那么存盘的cookie将被删除。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Set-Cookie&#8221; Content=&#8221;cookievalue=xxx; expires=Wednesday,</p>
<p>21-Oct-98 16:14:21 GMT; path=/&#8221;&gt;</p>
<p>6、Window-target (显示窗口的设定)</p>
<p>说明：强制页面在当前窗口以独立页面显示。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Widow-target&#8221; Content=&#8221;_top&#8221;&gt;</p>
<p>注意：这个属性是用来防止别人在框架里调用你的页面。Content选项：_blank、_top、_self、_parent。</p>
<p>7、Pics-label (网页RSAC等级评定)</p>
<p>说明：在IE的Internet选项中有一项内容设置，可以防止浏览一些受限制的网站，而网站的限制级</p>
<p>别就是通过该参数来设置的。</p>
<p>用法：&lt;META http-equiv=&#8221;Pics-label&#8221; Contect=</p>
<p>&#8220;(PICS－1.1&#8242;http://www.rsac.org/ratingsv01.html&#8217;</p>
<p>I gen comment &#8216;RSACi North America Sever&#8217; by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#8216;&#105;&#110;&#101;&#116;&#64;&#109;&#105;&#99;&#114;&#111;&#115;&#111;&#102;&#116;&#46;&#99;&#111;&#109;&#8217;">&#8216;inet@microsoft.com&#8217;</a></p>
<p>for &#8216;http://www.microsoft.com&#8217; on &#8216;1997.06.30T14:21－0500&#8242; r(n0 s0 v0 l0))&#8221;&gt;</p>
<p>注意：不要将级别设置的太高。RSAC的评估系统提供了一种用来评价Web站点内容的标准。用户可以设置Microsoft Internet Explorer（IE3.0以上）来排除包含有色情和暴力内容的站点。上面这个例子中的HTML取自Microsoft的主页。代码中的（n 0 s 0 v 0 l 0）表示该站点不包含不健康内容。级别的评定是由RSAC，即美国娱乐委员会的评级机构评定的，如果你想进一步了解RSAC评估系统的等级内容，或者你需要评价自己的网站，可以访问RSAC的站点：<a href="http://www.rsac.org/">http://www.rsac.org/</a>。</p>
<p>8、Page-Enter、Page-Exit (进入与退出)</p>
<p>说明：这个是页面被载入和调出时的一些特效。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Page-Enter&#8221; Content=&#8221;blendTrans(Duration=0.5)&#8221;&gt;</p>
<p>&lt;Meta http-equiv=&#8221;Page-Exit&#8221; Content=&#8221;blendTrans(Duration=0.5)&#8221;&gt;</p>
<p>注意：blendTrans是动态滤镜的一种，产生渐隐效果。另一种动态滤镜RevealTrans也可以用于页面进入与退出效果:</p>
<p>&lt;Meta http-equiv=&#8221;Page-Enter&#8221; Content=&#8221;revealTrans(duration=x, transition=y)&#8221;&gt;</p>
<p>&lt;Meta http-equiv=&#8221;Page-Exit&#8221; Content=&#8221;revealTrans(duration=x, transition=y)&#8221;&gt;</p>
<p>Duration表示滤镜特效的持续时间(单位：秒)</p>
<p>Transition滤镜类型。表示使用哪种特效，取值为0-23。</p>
<p>0 矩形缩小 1 矩形扩大 2 圆形缩小 3 圆形扩大 4 下到上刷新 5 上到下刷新 6 左到右刷新 7 右到左刷新 8 竖百叶窗 9 横百叶窗 10 错位横百叶窗 11 错位竖百叶窗 12 点扩散 13 左右到中间刷新 14 中间到左右刷新 15 中间到上下 16 上下到中间 17 右下到左上 18 右上到左下 19 左上到右下 20 左下到右上 21 横条 22 竖条 23 以上22种随机选择一种</p>
<p>9、MSThemeCompatible (XP主题)</p>
<p>说明：是否在IE中关闭 xp 的主题</p>
<p>用法：&lt;Meta http-equiv=&#8221;MSThemeCompatible&#8221; Content=&#8221;Yes&#8221;&gt;</p>
<p>注意：关闭 xp 的蓝色立体按钮系统显示样式，从而和win2k 很象。</p>
<p>10、IE6 (页面生成器)</p>
<p>说明：页面生成器generator，是ie6</p>
<p>用法：&lt;Meta http-equiv=&#8221;IE6&#8243; Content=&#8221;Generator&#8221;&gt;</p>
<p>注意：用什么东西做的，类似商品出厂厂商。</p>
<p>11、Content-Script-Type (脚本相关)</p>
<p>说明：这是近来W3C的规范，指明页面中脚本的类型。</p>
<p>用法：&lt;Meta http-equiv=&#8221;Content-Script-Type&#8221; Content=&#8221;text/javascript&#8221;&gt;</p>
<img src ="http://www.blogjava.net/gaoyijun/aggbug/252069.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/gaoyijun/" target="_blank">Eason</a> 2009-01-20 16:44 <a href="http://www.blogjava.net/gaoyijun/archive/2009/01/20/252069.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>