简体   繁体   English

XHTML Strict在怪癖模式下无法正确呈现

[英]XHTML Strict not rendering properly in Quirks Mode

When XHTML Strict is considered to be a proper markup that works across all platforms, my webpage that's in XHTML 1.0 Strict does render differently in Quirks mode. 当XHTML Strict被认为是可以在所有平台上正常工作的标记时,我在XHTML 1.0 Strict中的网页在Quirks模式下的呈现方式会有所不同。

http://www.myfurni.com http://www.myfurni.com

Am I doing something wrong? 难道我做错了什么? The page perfectly validates in W3C! 该页面可以在W3C中完美验证!

EDITED FOR THOSE WHO REFER TO THIS QUESTION AFTER THE LINKED PAGE HAS CHANGED: 链接页面更改后,针对此问题进行过编辑:

The original markup contained nested DIVs with floated elements. 原始标记包含带有浮动元素的嵌套DIV。 I did not specify 'width' property for all possible elements and that somehow triggered a difference in rendering in old browsers including IE 7.0. 我没有为所有可能的元素指定'width'属性,这在某种程度上引发了旧版本浏览器(包括IE 7.0)的渲染差异。

Not sure exactly what your question is but quirks mode is intended for legacy web pages and usually user agents support oldschool layout techniques that were used in tabular layouts. 不确定确切的问题是什么,但是“怪癖”模式适用于旧版网页,通常用户代理支持表格布局中使用的老式布局技术。 Modern standards based web pages which are in standards mode do not rely on those. 处于标准模式的基于现代标准的网页不依赖这些网页。

A modern layout might not look correct in quirks mode just simply because it isn't built for it. 现代布局在怪癖模式下可能看起来不正确,只是因为它不是为此而构建的。 Or did I misunderstand the question? 还是我误解了这个问题?

Oh and even if your page is perfectly valid that doesn't mean your layout is "perfect" or that it will be rendered by all browsers the same exact way. 哦,即使您的页面完全有效,也并不意味着您的布局是“完美的”,也不意味着所有浏览器都将以完全相同的方式呈现该布局。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM