发新话题
打印

HTML语言中的Refresh和Redirect

HTML语言中的Refresh和Redirect


<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
     transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xml:lang="en" lang="en">
<head>

<title>My Page Refresh</title>

<meta name="keywords" c />
<meta name="description" c />
<meta name="author" c />
<meta http-equiv="refresh"c/>
</head>

<body>
<p><big>Please wait while we redirect you to our new site</big></p>
</body>
</html>



按照书上说的,应该在网页打开后3秒钟之后,转到Google才对。
问题是:
FireFox和Opera只显示Please wait while we redirect you to our new site
IE呢,似乎是每3秒刷新一次,但不跳转
只有Safari按照书上说的,3秒钟之后跳转到Google了。

我想知道,这是为什么啊,俺学得可是比较标准的HTML教程啊?

[ 本帖最后由 大胆狂徒 于 2008-6-18 23:06 编辑 ]

TOP

似乎和Discuz!的代码有冲突啊
这样,关键就这一句
<meta http-equiv="refresh"content="3,url=http://www.google.cn"/>

TOP

不懂。。。纯GOOGLE。。。

<html><body>
<p>wait 1s</p>
<meta http-equiv="refresh" content="3;url=http://XXX">
</body></html>

[ 本帖最后由 evo 于 2008-6-18 23:09 编辑 ]

TOP

就是打开一个网页,过一会儿(时间自己设定)浏览器自动跳转另一个指定页面(自己设定)的效果。

TOP

大葱,感谢你,给了我思路(把,改为;)。
现在只有FireFox不认了,不知道为什么。

TOP

发新话题