确定IE6是否以Quirks或Standard模式呈现? [英] Determining whether IE6 renders in Quirks or Standard mode???
问题描述
Hi there,
I have this web site (www.DrTube.com) which has the following DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
which switches Mozilla to standards compliance mode as I can confirm
myself. How can I check whether IE6 and Opera do so too?
TIA
Regards
Xavier van Unen.
推荐答案
Dr.Tube写道:
Dr.Tube wrote:
你好,
我有这个网站( www.DrTube.com )具有以下DTD:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
" http://www.w3.org/TR/html4/loose.dtd">
将Mozilla切换到标准合规模式,因为我可以确认
TIA
问候
Xavier van Unen。
Hi there,
I have this web site (www.DrTube.com) which has the following DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
which switches Mozilla to standards compliance mode as I can confirm
myself. How can I check whether IE6 and Opera do so too?
TIA
Regards
Xavier van Unen.
尝试在URL区域输入javascript :alert(document.compatMode)。
如果它处于标准模式,你应该得到CSS1Compat,如果是标准模式,你应该得到BackCompat在
怪癖。
Try entering javascript:alert(document.compatMode) in the URL area.
You should get CSS1Compat if it''s in standards mode, or BackCompat if in
quirks.
Dr.Tube写道:
Dr.Tube wrote:
你好,
我有这个网站( www.DrTube.com ),其中包含以下DTD:
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
" http://www.w3.org/TR/html4/loose.dtd">
将Mozilla切换到标准合规模式,因为我可以自己确认。如何检查IE6和Opera是否也这样做?
Hi there,
I have this web site (www.DrTube.com) which has the following DTD:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
which switches Mozilla to standards compliance mode as I can confirm
myself. How can I check whether IE6 and Opera do so too?
查看Eric Meyer网站上的表格[1]。根据Eric的
表,它应该符合标准的兼容模式。我推荐使用XHTML 1.0 Strict只需
,对于每个浏览器,它总是符合标准的
模式。
[1] http://www.ericmeyeroncss.com/bonus /render-mode.html
-
Lachlan Hunt
http://www.lachy.id.au/
la ********** @ lachy.id.au.update.virus.scan ners
删除.update.virus.scanners给我发电子邮件,
没有垃圾邮件和没有病毒!!!
Look up the table on Eric Meyer''s website [1]. According to Eric''s
table, it should be in standard''s compliant mode. I recommend just
using XHTML 1.0 Strict, and it will always be in standard''s compliant
mode for every browser.
[1] http://www.ericmeyeroncss.com/bonus/render-mode.html
--
Lachlan Hunt
http://www.lachy.id.au/
la**********@lachy.id.au.update.virus.scanners
Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
Lachlan Hunt< la ********** @ lachy.id.au.update.virus.scanners>写在
新闻:YO **************** @ news-server.bigpond.net.au:
Lachlan Hunt <la**********@lachy.id.au.update.virus.scanners> wrote in
news:YO****************@news-server.bigpond.net.au:
Dr.Tube写道:
Dr.Tube wrote:
我如何检查IE6和Opera是否也这样做?
How can I check whether IE6 and Opera do so too?
我建议只使用XHTML 1.0 Strict ,对于每个浏览器,它将始终处于标准的兼容模式。
I recommend just
using XHTML 1.0 Strict, and it will always be in standard''s compliant
mode for every browser.
假设您将其作为应用程序发送/ XHTML + XML。如果你发送
作为text / html(大多数人都这样做,由于缺少浏览器
支持),怪癖模式仍然存在。
问候,
Geoff
That''s assuming you''re sending it as application/xhtml+xml. If you send it
as text/html (which the majority of people do, due to lacking browser
support), quirks mode still exists.
Regards,
Geoff
这篇关于确定IE6是否以Quirks或Standard模式呈现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!