我正在尝试刷新同一页面,但它无法正常工作.这是我的HTML代码:
<html>
    <head>
        <title>HTML in 10 Simple Steps or Less</title>
        <meta http-equiv=”refresh” content=”5" />
    </head>
    <body>
    </body>
</html>
Den*_*aub 196
看起来您可能使用浏览器无法识别的双引号来粘贴(或使用像MS Word这样的文字处理器).请检查您的代码是否使用了这样的实际双引号",这与以下字符不同:”
将meta标签替换为此标签,然后重试:
<meta http-equiv="refresh" content="5" >
ben*_*sch 38
你正在使用智能报价.也就是说",您使用的是引号(”),而不是标准引号().这种情况会自动发生在Microsoft Word和其他文字处理器上,以使事物看起来更漂亮,但它也会破坏HTML.确保在纯文本编辑器编写,如记事本或的Notepad2.
<html>
  <head>
    <title>HTML in 10 Simple Steps or Less</title>
    <meta http-equiv="refresh" content="5"> <!-- See the difference? -->
  </head>
  <body>
  </body>
</html>
Boo*_*eus 37
您使用的报价是问题:
<meta http-equiv=”refresh” content=”5" >
你应该使用 "
<meta http-equiv="refresh" content="5">
Waz*_*azy 17
<meta http-equiv="refresh" content="600; url=index.php">
600是刷新周期之间的秒数.
试试这个:
<meta http-equiv="refresh" content="5;URL= your url">
要么
<meta http-equiv="refresh" content="5">  
小智 6
试试这个标签.这将index.html每30秒刷新一次页面.
<meta http-equiv="refresh" content="30;url=index.html">