internet explorer 7 - Forcing IE7 into standards rendering mode (not quirks) -
i'm having display issues in ie7 due rendering in quirks mode. i've confirmed displaying "document.compatmode" , getting "backcompat" opposed "css1compat". using ie8 , reverting ie7 works, because keeps out of quirks. in plain ie8 have fixed forcing rendering mode x-ua-compatible header, not work ie7. other browsers display in quirks, unlike ie not put them pseudo-ie5.5 mode, still render fine.
how can force ie7 render in standards rendering mode , not quirks? i've tried setting doctype number of different options , i'm not adding xml prologue. in advance replies.
did try xhtml 4 strict dtd ?
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml/dtd/xhtml1-strict.dtd">
also beware if there before dtd declaration, ie7 still stay in quirk mode.
in other words:
ie7: strict
<?xml version="1.0" encoding="utf-8"?> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
or
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
ie7: quirk
<?xml version="1.0" encoding="utf-8"?> <!-- stuff --> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
where gets nasty : ie6 takes following quirk mode.
<?xml version="1.0" encoding="utf-8"?> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
Comments
Post a Comment