-
Line 7, Column 45: Bad value Pragma for attribute http-equiv on element meta. <meta http-equiv="Pragma" content="no-cache"> -
Line 8, Column 52: Bad value Cache-Control for attribute http-equiv on element meta. <meta http-equiv="Cache-Control" content="no-cache"> -
Line 9, Column 39: Bad value Expires for attribute http-equiv on element meta. <meta http-equiv="Expires" content="0">
在线验证地址:http://validator.w3.org/
验证网页:http://each.sinaapp.com/game/
原meta标签为:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
修改后标签为(兼容多浏览器含IE):
<meta http-equiv="cache-control"content="max-age=0"/>
<meta http-equiv="cache-control"content="no-cache"/>
<meta http-equiv="expires"content="0"/>
<meta http-equiv="expires"content="Tue, 01 Jan 1980 1:00:00 GMT"/>
<meta http-equiv="pragma"content="no-cache"/>
本文介绍了一个关于HTML元标签的问题,并提供了正确的使用方式以确保网页能在不同浏览器中正确地被缓存或禁止缓存。
541

被折叠的 条评论
为什么被折叠?



