iframe和HTML 4.01 [英] iframe and HTML 4.01

查看:51
本文介绍了iframe和HTML 4.01的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://ataru.gomen上有以下文件.org / file / test.html:


<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN" http://www.w3.org/TR/html4/strict.dtd">

< html>

< head>

< title>测试< / title>

< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1">

< / head>

< body>

< h1> Hello,world !< / h1>

< iframe>< / iframe>

< / body>

< / html>


< iframe>的全部要点是在页面中嵌入一个框架,不是吗?

但是这个文件不是4.01严格,也不是4.01框架集。我可以使用< object>
吗?为了获得与< iframe>完全相同的效果,或者

我必须让自己辞去不合格的页面吗?


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。

I have the following document, at http://ataru.gomen.org/file/test.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Hello, world!</h1>
<iframe></iframe>
</body>
</html>

The whole point of <iframe> is to embed a frame in a page, is it not?
But this document is not 4.01 strict, nor is it 4.01 frameset. Can I
use an <object> to get exactly the same effect as the <iframe>, or
must I resign myself to having a non-conforming page?

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.

推荐答案

Christopher Benson-Manica写道:
Christopher Benson-Manica wrote:
< iframe>的全部要点是在页面中嵌入一个框架,不是吗?


是的......带有所有问题。

但是这个文件不是4.01严格,也不是4.01框架集。


它处于过渡状态。

我可以使用< object>获得与< iframe>完全相同的效果


是的......在某些浏览器中。在其他浏览器(支持iframe)中,你会发现有趣的错误,而其他人则会完全忽略它。

,或者我必须让自己辞职不合格页面?
The whole point of <iframe> is to embed a frame in a page, is it not?
Yes ... with all the problems that come with that.
But this document is not 4.01 strict, nor is it 4.01 frameset.
Its in Transitional.
Can I use an <object> to get exactly the same effect as the <iframe>
Yes ... in some browsers. In other browsers (which support iframe) you will
find interesting bugs, while still others will ignore it entirely.
, or must I resign myself to having a non-conforming page?




像往常一样,不使用框架可能是最好的解决方案。

-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方



As usual, "not using frames" is likely to be the best solution.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Christopher Benson-Manica写道:
Christopher Benson-Manica wrote:
我在上有以下文件http://ataru.gomen.org/file/test.html:

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 // EN" http://www.w3.org/TR/html4/strict.dtd">

< html>
< head>
< title>测试< / title>
< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1">
< / head>
< body>
< h1> Hello,world!< / h1>
< iframe>< / iframe>
< / body>
< / html>

< iframe>的重点是在一个页面中嵌入一个框架,不是吗?
但是这个文件不是4.01严格的,也不是4.01框架集。我可以使用< object>为了获得与< iframe>完全相同的效果,或者
我必须让自己辞去不合格的页面吗?
I have the following document, at http://ataru.gomen.org/file/test.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Hello, world!</h1>
<iframe></iframe>
</body>
</html>

The whole point of <iframe> is to embed a frame in a page, is it not?
But this document is not 4.01 strict, nor is it 4.01 frameset. Can I
use an <object> to get exactly the same effect as the <iframe>, or
must I resign myself to having a non-conforming page?




我推荐以下内容当使用HTML 4.01严格时,如果你必须导入

,在html文档中嵌入一个html文档:


< p>

< object data =" path / filename.html" type =" text / html">

< a href =" path / filename.html">链接的一些描述性标题< / a>

< / object>

< / p>


最好还是要避免在html文档中嵌入html文档

出于多种原因:书签,版权,可用性,导航性,

等..


DU

-

网站上说使用Internet Explorer 5或更好......所以我切换到了

Mozilla 1.7.3 :)



I recommend the following when using HTML 4.01 strict, if you must
import, embed an html document within an html document:

<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html">Some descriptive title for the link</a>
</object>
</p>

Best is still to avoid embedding html documents within html documents
for numerous reasons: bookmarking, copyrights, usability, navigability,
etc..

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)


DU< dr ******* @ hotnospammail.com>这样说:
DU <dr*******@hotnospammail.com> spoke thus:
< p>
< object data =" path / filename.html" type =" text / html">
< a href =" path / filename.html">链接的一些描述性标题< / a>
< / object>
< / p>


这会产生与< iframe>相同的效果吗?更重要的是,

是否适用于IE 5.5 / IE 6?我在留言板上看到

< object>在去年的某个时候,IE被打破了。我不知道

肯定我能做到这一点,因为< iframe>通过JavaScript修改和访问...

最好仍然是为了避免在html文档中嵌入html文档
有多种原因:书签,版权,可用性,导航性,
等。
<p>
<object data="path/filename.html" type="text/html">
<a href="path/filename.html">Some descriptive title for the link</a>
</object>
</p>
Does that give the same effect as the <iframe>? More importantly,
does it work with IE 5.5/IE 6? I read on a message board that
<object> was broken for IE as of sometime last year. I don''t know
for sure that I can do that anyway, since the <iframe> is heavily
modified and accessed by JavaScript...
Best is still to avoid embedding html documents within html documents
for numerous reasons: bookmarking, copyrights, usability, navigability,
etc..




不幸的是,这不是我可以做出的设计决定。


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。



That, unfortunately, is not a design decision I can make.

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.


这篇关于iframe和HTML 4.01的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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