html - IE8 takes on class name of IE7 when using conditional comments -


i have seen couple of answers relate questions can't seem problem solved.

i trying use conditional comments target ie per paul irish boilerplate i.e.

<!--[if lt ie 7 ]> <body class="ie6"> <![endif]-->  <!--[if ie 7 ]>    <body class="ie7"> <![endif]-->  <!--[if ie 8 ]>    <body class="ie8"> <![endif]-->  <!--[if ie 9 ]>    <body class="ie9"> <![endif]-->  <!--[if gt ie 9]>  <body> <![endif]--> <!--[if !ie]><!--> <body> <!--<![endif]--> 

doctype 'transitional'.

i testing site on local server , looking @ developer toolbar in ie8, class placed on body 'ie7'

after looking using following try , render in ie8 standards mode hoping class put on body 'ie8'

<meta http-equiv="x-ua-compatible" content="ie=emulateie8"> 

it doesn't work. used js here tell mode ie8 in. says ie8 standards mode.

any idea how can class on body of ie8 read 'ie8'? or @ least, not 'ie7' does.

or not possible testing on local server meaning have put on live server before can make changes want? seems bit crazy...

thanks

if using local server in ie8 compatibility mode. default local sites.

to check hit f12 , developer toolbar should load. show browser mode , document mode using. ie8 should display both.

you can disable default behaviour clicking "tools" > "compatibility view settings" , change setting "display intranet sites in compatibility mode".


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -