【问题标题】:Refresh HTML page automatically自动刷新 HTML 页面
【发布时间】:2013-03-22 16:05:45
【问题描述】:

我需要自动刷新 HTML 页面。

如果我将以下内容放在我的 HEAD 标记中,它似乎可以解决问题:

    <head>
     <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
     <meta http-equiv="Pragma" content="no-cache">
     <meta http-equiv="Expires" content="0">
   </head>

我想知道其他人是否有过它不起作用的经历。

谢谢

【问题讨论】:

标签: html


【解决方案1】:
Try this tag. 

     <head>
     <meta http-equiv="refresh" content="900">
    </head>

【讨论】:

    【解决方案2】:

    存在一些已知问题,这不适用于某些版本的 IE。有一种技巧,您可以在 HTML 文档的末尾放置一个包含适当元标记的第二个头部部分。

    【讨论】:

    • 谢谢凯夫。对于已知问题,如果用户确实刷新它应该刷新页面,对吗?
    猜你喜欢
    • 2012-07-21
    • 2011-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-09
    • 2013-09-05
    相关资源
    最近更新 更多