meta的Pragma,Set-Cookie,Window-target,Pics-label等参数
Html入门之meta的Pragma /Set-Cookie
/Window-target/Pics-label参数
1、Pragma (cach模式)
说明:禁止浏览器从本地机的缓存中调阅页面内容。
用法:<Meta http-equiv="Pragma" Content="No-cach">
注意:网页不保存在缓存中,每次访问都刷新页面。这样设定,访问者将无法脱机浏览。
2、Set-Cookie (cookie设定)
说明:浏览器访问某个页面时会将它存在缓存中,下次再次访问时就可从缓存中读取,以提高速度。当你希望访问者每次都刷新你广告的图标,或每次都刷新你的计数器,就要禁用缓存了。通常HTML文件没有必要禁用缓存,对于ASP等页面,就可以使用禁用缓存,因为每次看到的页面都是在服务器动态生成的,缓存就失去意义。如果网页过期,那么存盘的cookie将被删除。
用法:<Meta http-equiv="Set-Cookie" Content="cookievalue=xxx; website=doc.guandang.net expires=Wednesday, 21-Oct-98 16:14:21 GMT; path=/">
注意:必须使用GMT的时间格式。
3、Window-target (显示窗口的设定)
说明:强制页面在当前窗口以独立页面显示。
用法:<Meta http-equiv="Widow-target" Content="_top">
注意:这个属性是用来防止别人在框架里调用你的页面。Content选项:_blank、_top、_self、_parent。
4、Pics-label (网页RSAC等级评定)
说明:在IE的Internet选项中有一项内容设置,可以防止浏览一些受限制的网站,而网站的限制级别就是通过该参数来设置的。
用法:<META http-equiv="Pics-label" Contect="(PICS-1.1'doc.guandang.net' I gen comment 'RSACi North America Sever' by 'inet@microsoft.com' for 'doc.guandang.net' on
河南华威铝业有限公司 铝箔、彩涂铝板、药用铝箔、花纹铝板、铝棒、铝圆片专业制造
Html 入门之 meta 的 Content-Type 和 Content-Language 详解 meta 的 Content-Type 和 Content-Language 参数用法 Content-Type 和 Content-Language (显示字符集...
D、Set-Cookie(cookie 设定) 说明:如果网页过期,...用法:<meta http-equiv="Window-target" content="...equiv=〃PICS-Label〃 content=′(PICS-1.1 〃...
用法:<meta http-equiv="Set-Cookie" content="...用法:<meta http-equiv="Window-target" content="...html; charset=gb2312"> 7、Pics-label(网页等级...
D、Set-Cookie(cookie 设定) 说明:如果网页过期,...用法:<meta http-equiv="Window-target" content="...equiv=〃PICS-Label〃 content=′(PICS-1.1 〃 ...
<meta http-equiv="Pragma" content="no-cache">...<meta http-equiv="set-cookie" content="Mon,12...<meta http-equiv="Pics-label" content="">网页...
<meta http-equiv="Pragma" contect="no-cache">...<meta http-equiv="set-cookie" contect="Mon,12...<meta http-equiv="Pics-label" contect="">网页...
用法:<Meta http-equiv="Set-Cookie" Content="...6、Window-target (显示窗口的设定) 说明:强制页面...PICS-1.1'http://www.rsac.org/ratingsv01.html...
HTML 基础知识:说说 Meta 标签的应用 分享 作者:...用法:<meta http-equiv="Set-Cookie" content="...用法:<meta http-equiv="Window-target" content="...
D、Set-Cookie(cookie设定) 说明:如果网页过期,那么...E、Window-target(显示窗口的设定) 说明:强制页面在...7、META标签的HTTP-EQUIV="Pragma"CONTENT="no-...
热门文档