<!--[if IE]> <script type="text/javascript"> new Marquee("ygjy1",0,2,395,300,50,0,0) new Marquee("jbhc1",0,2,395,300,50,0,0) </script> <![endif]-->
其他瀏覽器:
復(fù)制代碼
代碼如下:
<!--[if !IE]> <script type="text/javascript"> new Marquee("ygjy1",0,3,395,303,20,4000,3000,101); new Marquee("jbhc1",1,3,395,303,20,4000,3000,101); </script> <!--<![endif]-->
1、Css if hack條件語(yǔ)法 <!--[if IE]> Only IE <![endif]--> 僅所有的WIN系統(tǒng)自帶IE可識(shí)別 <!--[if IE 5.0]> Only IE 5.0 <![endif]--> 只有IE5.0可以識(shí)別 <!--[if gt IE 5.0]> Only IE 5.0+ <![endif]--> IE5.0包換IE5.5都可以識(shí)別 <!--[if lt IE 6]> Only IE 6- <![endif]--> 僅IE6可識(shí)別 <!--[if gte IE 6]> Only IE 6/+ <![endif]--> IE6以及IE6以下的IE5.x都可識(shí)別 <!--[if lte IE 7]> Only IE 7/- <![endif]--> 僅IE7可識(shí)別 <!--[if gte IE 7]> Only IE 7/+ <![endif]--> IE7以及IE7以下的IE6、IE5.x都可識(shí)別 <!--[if IE 8]> Only IE 8/- <![endif]--> 僅IE8可識(shí)別 2、DIV+CSS實(shí)例教程 CSS實(shí)例一: 讓IE6-IE8顯示不同的內(nèi)容,DIV CSS代碼如下: