使用元标记在HTML中自动刷新代码 [英] Auto refresh code in HTML using meta tags

查看:85
本文介绍了使用元标记在HTML中自动刷新代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to refresh the same page but it isn't working. This is my HTML code:

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

    </body>
</html>


推荐答案

它看起来像你可能粘贴了这个(或使用像MS Word这样的文字处理器)使用一种双引号,而这些双引号是浏览器无法识别的。请检查你的代码是否使用像这样的实际双引号 ,与以下字符不同:

It looks like you probably pasted this (or used a word processor like MS Word) using a kind of double-quotes that are not recognized by the browser. Please check that your code uses actual double-quotes like this one ", which is different from the following character: "

替换元标签,并再试一次:

Replace the meta tag with this one and try again:

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

这篇关于使用元标记在HTML中自动刷新代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆