0

I'm not using the XML declaration <?xml version="1.0" encoding="UTF-8" ?>

I'm only using this DTD as a first thing in a page? which has no problem rendering in strict mode.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

It validated as quirks mode with this site http://vesa.piittinen.name/doctype/

(I can't give the link to the site on which I'm working)

In IE 6 it shows almost standards mode, and in FF it shows full standards mode.

Should I change my doctype to get the same rendering in all browser?

I'm having a rendering problem in a site

4

3 回答 3

3

你的文档类型很好..

问题在于您在另一篇文章中处理的特定错误(浮动元素上的 IE6 双边距)。请参阅那里以获取问题的答案..

于 2010-01-26T13:46:24.830 回答
1

根据该站点上的文档:

Internet Explorer 7 和 6 没有真正的 non-quirks 模式,它类似于其他浏览器的有限 quirks 模式。IE 5.5 及之前的版本只有一个怪癖模式。

这是因为作者让他对 Internet Explorer 的厌恶阻止他使用公认的术语来表示该浏览器的呈现模式。IE6 标准/严格模式还不够“好”,所以他称之为“有限怪癖模式”

于 2010-01-26T13:43:05.023 回答
-1

Check here:

http://www.quirksmode.org/css/quirksmode.html1 - this is the right link.

Check the Compatibility Master Table. Do you HAVE to make it work for IE6? I would suggest trying to convince the client that IE6 is not a browser to use.

Aside from that, use 4.01 Strict and make sure you validate you pages.

于 2010-01-26T14:14:41.067 回答