IE8 and quirks mode

Does IE8 work in quirks mode like IE6 / 7?

I have a webpage with some really bizarre code. Content is centered with indentation and negative margins.

It works correctly in IE6 / 7 and other browsers, but in IE8 the content area is half width and not centered (flag for quirks mode).

The source code has three empty lines before the DOCTYPE. I know this will move IE6 to quirks mode. Will it also affect IE8?

I do not have access to the source, so I can not delete these lines to check it.

+5
source share
6 answers

, , , , IE8 Quirks ( , , , ).

, IE8/7 , Quirks , Quirks ( , .)

+5

doctype HTML 5 . IE8 doctype.

:

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

: <! DOCTYPE html >

: http://davidnaylor.org/blog/2008/09/ie8-and-max-width.html

+6

DOCTYPE XHTML v1.0 (Strict) HTML5. - , IE DOCTYPE, .

IE8, ( CSS ). , , "" CSS, IE8, . , quirks.

, , , : " DOCTYPE. , IE6 quirks. IE8?"

, , javascript "" DOCTYPE ( HTML5 DOCTYPE). (, , ), IE8 .

+3

, . Quirks Internet Explorer - IE5.5. IE6/7/8 5.5, quirks. IE6/7, quirks. IE8 "". . CSS.

0

IE8 , IE7. ?

0

All Articles