虽然它符合标准,但IE并没有显示出来...... [英] IE doesn's display this although it's standard compliant...

查看:73
本文介绍了虽然它符合标准,但IE并没有显示出来......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们,


又是我了...因为我在

的帮助下学到了很多东西,我已经把这个例子符合XHTML 1.0

strict和CSS 2,但在IE6 SP1中根本没有显示。


请带一个请看:
http://www.omeganet.de/test /test.html


此文件使用 http://www.omeganet.de/test/styles.css 作为样式表。


通过检查确保两个文件的正确性来自w3.org的验证者

。该文件在Mozilla 1.4中正确显示,但IE6 SP1

除标题外没有显示任何内容,Opera只显示废话。


任何人都可以你再次帮忙:IE

不喜欢的代码段落是什么,它是一个bug还是一个功能?我该如何才能更正呢?


再次感谢,


Peter

解决方案

Peter Pfannenschmid:

请看一下:
http://www.omeganet.de/test/test.html
确保两个文件的正确性通过与w3.org的验证人确认
。该文件在Mozilla 1.4中正确显示,但IE6 SP1
除标题外没有显示任何内容,Opera只显示废话。
你们中的任何人都可以再次提供帮助:IE
不喜欢的代码段落是什么,它是一个bug还是一个功能?我怎样才能更正?




验证器并不是说您的页面有效XHTML 1.0

严格。相反,它说:


本页有效 - // W3C // DTD XHTML 1.0 STRICT // EN!


通常信息读取像这样:


本页有效XHTML 1.0严格!


接下来的原因是你写的STRICT而不是严格。


我不知道这是否是导致显示问题的原因。你用你的布局表做了一些奇怪的事情,

表格标签,空标题,空div等等,这更可能是
。问题

可能是很多选项。


-

Bertilo Wennergren< be *** ***@gmx.net> < http://www.bertilow.com>


it*@omeganet.de (Peter Pfannenschmid)在留言新闻中写道:< 65 ************************* @ posting.google.c om> ...

但在IE6 SP1中根本没有显示。




将第19行更改为

< script type =" text / javascript" src =" /jscript/navig.js">< / script>

使用" />"关闭脚本元素时IE似乎有问题(a

NET分隔符,如果我没有记错的话)


2004年2月1日03:32:57 -0800, it *@omeganet.de (Peter Pfannenschmid)

写道:

它又是我了...因为我在
你的帮助下学到了很多东西,我已经把一个符合XHTML 1.0
严格和CSS 2的例子放在一起,但是根本没有显示出来IE6 SP1。

请看一下:
http://www.omeganet.de/test/test.html

IE6不理解XHTML,它甚至不会尝试渲染它,除非

你把它错误地标记为text / html,在这种情况下你只是服务它

tag-soup,它然后使用标签汤解析器,显然它

没有意识到你的脚本已关闭。


我会说任何确实渲染出错的浏览器,并且

也将面临潜在的安全问题。

通过与w3.org的验证者确认,确保了两个文件的正确性。该文件在Mozilla 1.4中正确显示,但IE6 SP1除标题外没有显示任何内容,Opera只显示废话。




Mozilla是修好标签汤在IMO是一个坏方法。


吉姆。

-

comp.lang。 javascript常见问题 - http://jibbering.com/faq/


Hi folks,

it''s me again... since I have learned many things with the help of
you, I have put together an example which is compliant to XHTML 1.0
strict and to CSS 2, but isn''t shown at all in IE6 SP1.

Please take a look at:
http://www.omeganet.de/test/test.html

This file uses http://www.omeganet.de/test/styles.css as style sheet.

The correctness of both files was ensured by check with the validators
from w3.org. The file shows up correctly in Mozilla 1.4, but IE6 SP1
doesn''t display anything besides the title, and Opera only shows crap.

Could anyone of you help again: What''s the code passage which IE
doesn''t like, and is it a bug or once more a feature? How can I
correct it?

Thanks again,

Peter

解决方案

Peter Pfannenschmid:

Please take a look at:
http://www.omeganet.de/test/test.html The correctness of both files was ensured by check with the validators
from w3.org. The file shows up correctly in Mozilla 1.4, but IE6 SP1
doesn''t display anything besides the title, and Opera only shows crap. Could anyone of you help again: What''s the code passage which IE
doesn''t like, and is it a bug or once more a feature? How can I
correct it?



The validator does not really say that your page is valid XHTML 1.0
Strict. Instead it says:

This Page Is Valid -//W3C//DTD XHTML 1.0 STRICT//EN!

Normally the message reads like this:

This Page Is Valid XHTML 1.0 Strict!

The reason seams to be that you''ve written "STRICT" instead of "Strict".

I''ve no idea if that can be the reason for the display problems. It''s
more likely that you''ve done something strange with your layout table,
the form tags, the empty header, the empty divs, etc. Or the problem
could be the many "option"s.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>


it*@omeganet.de (Peter Pfannenschmid) wrote in message news:<65*************************@posting.google.c om>...

but isn''t shown at all in IE6 SP1.



Change line 19 to
<script type="text/javascript" src="/jscript/navig.js"></script>
IE seems to have problems when closing script elements with "/>" (a
NET delimiter if I''m not mistaken)


On 1 Feb 2004 03:32:57 -0800, it*@omeganet.de (Peter Pfannenschmid)
wrote:

it''s me again... since I have learned many things with the help of
you, I have put together an example which is compliant to XHTML 1.0
strict and to CSS 2, but isn''t shown at all in IE6 SP1.

Please take a look at:
http://www.omeganet.de/test/test.html
IE6 does not understand XHTML, it doesn''t even try to render it unless
you mislabel it as text/html in which case you''re just serving it
tag-soup, it then uses a tag-soup parser on it and obviously it
doesn''t realise your script is closed.

I would say any browser which did render that would be wrong, and
would also be opening itself up to potential security concerns.
The correctness of both files was ensured by check with the validators
from w3.org. The file shows up correctly in Mozilla 1.4, but IE6 SP1
doesn''t display anything besides the title, and Opera only shows crap.



Mozilla is fixing up that tag-soup in what is IMO a bad way.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/


这篇关于虽然它符合标准,但IE并没有显示出来......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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