IE _top链接越野车?解决方法可用? [英] IE _top linking buggy? workaround available?
问题描述
大家好,
我有一个问题,某个链接模式在IE浏览器中被解析错误,但可以在Firefox上查找。也许有人有一个想法,如何
解决它。
我有一个.html文件,有一个CSS和两个div部分,正文
本身是空的。一个div部分有一个嵌入式对象,类型为
" text / html"这是一个目录。这个嵌入对象包含与目标_top的链接,这些链接在Firefox中以_top打开,但是在包含持有
>
目录.html文件。明白我的意思?
简化代码示例:
index.html:
< html>
< head>
< title>我的标题< / title>
< link rel =" stylesheet"类型= QUOT;文本/ CSS" href =" default.css" />
< / head>
< body>
< div id =" ; toc">
< object data =" toc.html"类型= QUOT; text / html的" height =" 100%"
width =" 220px">< / object>
< / div>
< div id =" body">
一些文字
< / div>
< / body> ;
< / html>
toc.html:
< html>
< head>
< title>目录< / title>
< link rel =" stylesheet"类型= QUOT;文本/ CSS" href =" toc.css" />
< / head>
< body>
< h3>标题< / h3>
< ul>
< li>< a href =" 1.html" target =" _top"> entry1< / a>< / li>
< li>< a href =" 2.html" target =" _top"> entry2< / a>< / li>
< / ul>
< / body>
< / html>
这在Firefox中完美运行,其优点是我只需要
来维护TOC的单个文件,服务器端包括,
javascript,php或其他任何东西。但它在互联网上不起作用
资源管理器...
如果有任何提示或想法如何让它工作,我将不胜感激。
TIA,
Tom
Hi everybody,
I have a problem with a certain link pattern that gets resolved wrong in
the IE, but works find on Firefox. Maybe somebody has an idea, how to
work around it.
I have an .html file that has a CSS and two div sections, the body
itself is empty. One div section has an embedded object of type
"text/html" that is a table of contents. This embedded object includes
links with target _top that are opened in Firefox in _top, but are
opened in IE in the div section that contains the object holding the
table of contents .html file. Understand what I mean?
Simplified code sample:
index.html:
<html>
<head>
<title>my title</title>
<link rel="stylesheet" type="text/css" href="default.css"/>
</head>
<body>
<div id="toc">
<object data="toc.html" type="text/html" height="100%"
width="220px"></object>
</div>
<div id="body">
some text
</div>
</body>
</html>
toc.html:
<html>
<head>
<title>table of contents</title>
<link rel="stylesheet" type="text/css" href="toc.css"/>
</head>
<body>
<h3> header </h3>
<ul>
<li><a href="1.html" target="_top">entry1</a></li>
<li><a href="2.html" target="_top">entry2</a></li>
</ul>
</body>
</html>
This works perfectly in Firefox and has the advantage that I only need
to maintain a single file for the TOC, without server-side includes,
javascript, php, or anything else. But it does not work in Internet
Explorer...
I would be grateful for any hint or idea how to get it working.
TIA,
Tom
推荐答案
Thomas Maier-Komor写道:
Thomas Maier-Komor wrote:
大家好,
我有一个问题,某个链接模式在IE浏览器中被解析错误,但在Firefox上找不到。也许有人有一个想法,如何解决它。
我有一个.html文件,有一个CSS和两个div部分,身体
本身是空的。一个div部分有一个类型为
text / html的嵌入对象。这是一个目录。这个嵌入对象包含与目标_top的链接,这些链接在Firefox中以_top打开,但是在包含持有
目录.html文件的对象的div部分中的IE中打开。明白我的意思?
Hi everybody,
I have a problem with a certain link pattern that gets resolved wrong in
the IE, but works find on Firefox. Maybe somebody has an idea, how to
work around it.
I have an .html file that has a CSS and two div sections, the body
itself is empty. One div section has an embedded object of type
"text/html" that is a table of contents. This embedded object includes
links with target _top that are opened in Firefox in _top, but are
opened in IE in the div section that contains the object holding the
table of contents .html file. Understand what I mean?
< snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW常见问题解答:如何在一个HTML文件中包含另一个?
-
保重,
Jonathan
- -----------------
LITTLE WORKS STUDIO
http://www.tittleWorksStudio.com
Jonathan N. Little写道:
Jonathan N. Little wrote:
Thomas Maier-Komor写道:
Thomas Maier-Komor wrote:
大家好,
我有一个问题,某个链接模式在IE浏览器中得到解决,但是找不到工作Firefox浏览器。也许有人有一个想法,如何解决它。
我有一个.html文件,有一个CSS和两个div部分,身体
本身是空的。一个div部分有一个类型为
text / html的嵌入对象。这是一个目录。这个嵌入对象包含与目标_top的链接,这些链接在Firefox中以_top打开,但是在包含持有
目录.html文件的对象的div部分中的IE中打开。明白我的意思?
Hi everybody,
I have a problem with a certain link pattern that gets resolved wrong in
the IE, but works find on Firefox. Maybe somebody has an idea, how to
work around it.
I have an .html file that has a CSS and two div sections, the body
itself is empty. One div section has an embedded object of type
"text/html" that is a table of contents. This embedded object includes
links with target _top that are opened in Firefox in _top, but are
opened in IE in the div section that contains the object holding the
table of contents .html file. Understand what I mean?
<剪辑代码>
http://www.boutell.com/newfaq/creating/include.html
WWW常见问题解答:如何在另一个中包含一个HTML文件?
<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?
这是一个不错的链接,但它只提供我不能使用的解决方案和
在我原来的帖子中明确排除作为选项。
关于我的问题的任何其他想法?如果不是我可能会去取消IE支持,因为它看起来像是一个bug给我,IE如何处理这个
的情况...
that''s a nice link, but it only offers the solutions I cannot use and
explicitly excluded as an option in my original posting.
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Thomas Maier-Komor写道:
Thomas Maier-Komor wrote:
Jonathan N. Little写道:
Jonathan N. Little wrote:
Thomas Maier-Komor写道:
Thomas Maier-Komor wrote:
大家好,
我有一个问题,某个链接模式在IE浏览器中得到解决,但在Firefox上找不到。也许有人有一个想法,如何解决它。
我有一个.html文件,有一个CSS和两个div部分,身体
本身是空的。一个div部分有一个类型为
text / html的嵌入对象。这是一个目录。这个嵌入对象包含与目标_top的链接,这些链接在Firefox中以_top打开,但是在包含持有
目录.html文件的对象的div部分中的IE中打开。明白我的意思?
Hi everybody,
I have a problem with a certain link pattern that gets resolved wrong in
the IE, but works find on Firefox. Maybe somebody has an idea, how to
work around it.
I have an .html file that has a CSS and two div sections, the body
itself is empty. One div section has an embedded object of type
"text/html" that is a table of contents. This embedded object includes
links with target _top that are opened in Firefox in _top, but are
opened in IE in the div section that contains the object holding the
table of contents .html file. Understand what I mean?
<剪辑代码>
http://www.boutell.com/newfaq/creating/include.html
WWW常见问题解答:如何在另一个中包含一个HTML文件?
<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?
关于我的任何其他想法问题?如果不是我可能会取消IE支持,因为它看起来像是一个bug,IE如何处理这种情况......
that''s a nice link, but it only offers the solutions I cannot use and
explicitly excluded as an option in my original posting.
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
我的观点是你不应该怎么做文件包含,你有一个URL吗?
-
保重,
Jonathan
-------------------
LITTLE WORKS STUDIO > http://www.LittleWorksStudio.com
这篇关于IE _top链接越野车?解决方法可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!