Thursday, 21 June 2012

write different css and javascript according to different Internet Explorer(IE)


this condition is supported for  less than IE9
<!--[if lt IE 9]>
<link href="css/test-ie9below.css" rel="stylesheet" media="screen" />
<![endif]-->



this condition is supported for  less than or equal to IE9
<!--[if lte IE 9]>
<link href="css/test-ie9beloworequal.css" rel="stylesheet" media="screen" />
<![endif]-->



this condition is supported for  greated  than or equal to IE7
<!--[if gte IE 7]>
<link href="css/test-ie7above.css" rel="stylesheet" media="screen" />
<![endif]-->



this condition is supported for  IE7 only
<!--[if  IE 7]>
<link href="css/test-ie7.css" rel="stylesheet" media="screen" />
<![endif]-->


this condition is supported for  IE8 only
<!--[if  IE 8]>
<link href="css/test-ie8.css" rel="stylesheet" media="screen" />
<![endif]-->



No comments: