基本标签对< META HTTP-EQUIV =“刷新”没有影响。 [英] base tag has no effect over <META HTTP-EQUIV="Refresh"

查看:53
本文介绍了基本标签对< META HTTP-EQUIV =“刷新”没有影响。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


知道为什么这不起作用吗?

或者我怎么让这个东西上班?

< BASE HREF =" http:// localhost / thedude /">

< META HTTP-EQUIV =" Refresh" CONTENT =" 0; URL = redirect.html">


我正在添加< base>标记为现有html的内容,

包含重定向元标记。

我无法编辑文件,只在顶部添加新行。我使用< base>

标记来处理现有文档中的相对网址。


谢谢,

Udi。

Hello,

any idea why this does not work?
or how do i get this thing to work?

<BASE HREF="http://localhost/thedude/">
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html">

I''m adding the <base> tag to the content of an existing html that
contains a redirect meta tag.
I cannot edit the file only add new lines at the top. I use the <base>
tag to handle relative urls with in the existing document.

Thanks,
Udi.

推荐答案

Udi Zisser写道:
Udi Zisser wrote:
你好,


嗨:-)

知道为什么这不起作用吗?
或者我如何让这个东西起作用?

< BASE HREF =" http:// localhost / thedude /">
< META HTTP-EQUIV =" Refresh" CONTENT =" 0; URL =将redirect.html">


为什么它不起作用:


Base * href *。页面中所有href的基础。

元元素中没有href。


如何让它工作?不知道,抱歉。

我正在添加< base>标记为包含重定向元标记的现有
html的内容。
我无法编辑文件,只在顶部添加新行。我使用
< base>在现有
文档中处理相对URL的标记。
Hello,
Hi :-)
any idea why this does not work?
or how do i get this thing to work?

<BASE HREF="http://localhost/thedude/">
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html">
Why it doesn''t work:

Base *href*. The basis for all href in the page.
There''s no href in that meta element.

How to get it to work? No idea, sorry.
I''m adding the <base> tag to the content of an existing
html that contains a redirect meta tag.
I cannot edit the file only add new lines at the top. I use
the <base> tag to handle relative urls with in the existing
document.




如何编辑文件但是可以添加新行

在顶部?

让你的webdesigner取出< meta> ?谁把它放在

呢?


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -

现在播放:甲壳虫乐队 - 爱我做



How is it that you cannot edit the file yet can add new lines
at the top?
Get your webdesigner to take out the <meta> ? Who put it in
then?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Now playing: The Beatles - Love Me Do


Els < EL ********* @ tiscali.nl>写道:
Els <el*********@tiscali.nl> wrote:
Udi Zisser写道:
Udi Zisser wrote:
你好,
你好:-)
Hello,
Hi :-)
任何想法为什么这不起作用?
或者我如何让这个东西起作用?

< BASE HREF =" http:// localhost / thedude /"> ;
< META HTTP-EQUIV ="刷新" CONTENT =" 0; URL = redirect.html">
any idea why this does not work?
or how do i get this thing to work?

<BASE HREF="http://localhost/thedude/">
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html">



为什么它不起作用:

Base * href *。页面中所有href的基础。



Why it doesn''t work:

Base *href*. The basis for all href in the page.




这不是解释,因为BASE URL适用于

SRC IMG标签中的属性。

元元素中没有href。



That can''t quite be the explanation, because the BASE URL applies to
SRC attributes in IMG tags as well.
There''s no href in that meta element.



-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。


--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.

Udi Zisser写道:
Udi Zisser wrote:
你好,

任何想法为什么这不起作用?
或者我如何得到这个东西工作?

< BASE HREF =" http:// localhost / thedude /">
< META HTTP-EQUIV =" Refresh" CONTENT =" 0; URL = redirect.html">
Hello,

any idea why this does not work?
or how do i get this thing to work?

<BASE HREF="http://localhost/thedude/">
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html">




它可能适用于*某些*浏览器,但它无效。事实是,没有名为刷新的HTTP标头,因此任何使用HTML

标签模拟它的尝试都无法可靠地运行。 />

这就是HTML 4规范所说的:



It might work in *some* browsers, but it isn''t valid. The fact is, there is
no HTTP header called "Refresh", so any attempt to emulate it with an HTML
tag is not going to work reliably.

This is what the HTML 4 specification says:

注意。某些用户代理支持使用META在指定的秒数后刷新当前页面,并使用
选项将其替换为不同的URI。作者不应该使用这种技术将用户转发到不同的页面,因为这使得某些用户无法访问该页面。相反,
自动页面转发应该使用服务器端
重定向。
Note. Some user agents support the use of META to refresh the
current page after a specified number of seconds, with the
option of replacing it by a different URI. Authors should not
use this technique to forward users to different pages, as
this makes the page inaccessible to some users. Instead,
automatic page forwarding should be done using server-side
redirects.




所以你应该使用相反,服务器端重定向。


-

Philip Ronan
ph *********** @ virgin.net

(如果回复,请删除z电子邮件)



So you should use a server-side redirect instead.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)


这篇关于基本标签对&lt; META HTTP-EQUIV =“刷新”没有影响。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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