100

我正在尝试刷新同一页面,但它不起作用。这是我的 HTML 代码:

<html>
  <head>
    <title>HTML in 10 Simple Steps or Less</title>
    <meta http-equiv=”refresh” content=”5" />
  </head>
  <body>

  </body>
</html>
4

6 回答 6

223
于 2012-01-03T11:55:26.623 回答
43
于 2012-01-03T11:56:10.900 回答
38

The quotes you use are the issue:

<meta http-equiv=”refresh” content=”5" >

You should use the "

<meta http-equiv="refresh" content="5">
于 2012-01-03T11:56:31.193 回答
23
<meta http-equiv="refresh" content="600; url=index.php">

600 is the amount of seconds between refresh cycles.

于 2012-01-03T11:57:28.903 回答
14

尝试这个:

<meta http-equiv="refresh" content="5;URL= your url">

或者

<meta http-equiv="refresh" content="5">  
于 2014-03-19T12:12:32.450 回答
7

试试这个标签。index.html这将每 30 秒刷新一次页面。

<meta http-equiv="refresh" content="30;url=index.html">
于 2013-07-02T07:52:50.357 回答