html - IE9: how to forces 2 pages to display the same why? The first is in Quirks mode, the other IE7 Compatible -
no matter try do, pages keep looking different depending on whether local machine or development server. when pressing f12, i've finaly noticed pages have different instructions on top:
1) pages displayed local machine have following values:
browser mode: ie9 compatible view
document mode: quirks
html starts line of code
<html xmlns="http://www.w3.org/1999/xhtml">
2) whereas pages displayed development server have following values:
browser mode: ie9 compatible view
document mode: ie7 standards
html starts line of code
<!-- doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" --> <html xmlns="http://www.w3.org/1999/xhtml">
it looks the first line of instruction that's making pages display differently.
do need add line pages coming local machines well? why , how that?
thanks helping
without doctype, in quirks mode, and, no matter else do, pages won't same in strict mode.
new web pages should have doctype , use strict. newly created page have need quirks or transitional doctype using.
add either transitional doctype on first line or, preferably, strict version:
<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd">
better yet, use new type: <!doctype html>
keep browsers in strict mode, including ie ie6 (or ie4? don't recall).
Comments
Post a Comment