问题描述
我有一个页面,使用了一些与元素相关的内容:
$ p $ < meta http-equiv =refreshcontent = 0; url = http://example.com//>
但对于某个工作站上的某些用户,这不起作用。在IE中。有没有错误的cookie或设置某处会导致此失败?我从来没有听说过这样的事情。
问题是,当IE看到这个时:
< meta http-equiv =refreshcontent =0; http://www.example.com/>
它期望content属性包含一个数字。如果content属性包含URL =,那么IE浏览器检查URL的唯一时间是,因此在所有浏览器中最可用的重定向是这样的:
< meta http-equiv =refreshcontent =0; URL = http://www.example.com/>
上面的例子会自动重定向,但如果您将0改为另一个数字,它会等待几秒钟。希望这一切都有道理,它应该工作得很好,但我仍然认为我的第一个想法是更好的。
I have a page using something along the lines of
<meta http-equiv="refresh" content="0;url=http://example.com/" />
but for certain users on a certain workstation this doesn't work. The is in IE. Is there something wrong with cookies or a setting somewhere which would cause this to fail? I never heard of such a thing.
The problem is that when IE sees this:
<meta http-equiv="refresh" content="0;http://www.example.com" />
it expects the contents attribute to contain a number. The only time IE will check for a URL is if the content attribute contains "URL=" so the redirect that is most usable in all browsers is this:
<meta http-equiv="refresh" content="0;URL=http://www.example.com" />
The above example would redirect immdetiately but if you changed the 0 for another number it would wait that many seconds. Hope this all makes sense, it should work just fine but I still think my first idea was the better one.
这篇关于元刷新不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!