伏惜寒 发表于 2019-3-16 13:18:49

没法自动跳转网页

我按照教程写的代码,为什么不能自动刷新跳转?
求解

<DOCTYPE HTML>
<html>
        <head>
                <title>我的第一个web程序</title>
                <meta charset="utf-8">
                <meta name="voewport" content="width=device-width, initial-scale=1.0">
                <meta name="keywords" content="关键词,web开发,伏惜寒,第一个,web程序">
                <meta name="description" content="鱼C论坛HTML5速查">
                <meta name="author" content="伏惜寒">
                <meta http-equiv="refersh" content="5;https://fishc.com.cn/forum.php">
        </head>
        <body>
                <h1>Hollow world</h1>
                <img src="image/1.JPG" alt="image/123.JPG" width=“265px” height="265px">
                <a href="https://man.ilovefishc.com/html5/" target="_blank">鱼C论坛HTML5速查宝典</a>
                <p>5秒后跳转到鱼C论坛</p>
        </body>
</html>

Sacura 发表于 2019-3-16 22:06:51

你的这一行代码写错了:<meta http-equiv="refersh" content="5;https://fishc.com.cn/forum.php">
首先应该是refresh而不是refersh,其次chotent="5;这个分号应该是英文分号你写成中文分号了,这两处改过来就可以跳转了。{:5_95:}
页: [1]
查看完整版本: 没法自动跳转网页