css-hack-兼容问题(-兼容问题csshack)css-hack-兼容问题(-兼容问题csshack)patibilityproblemCSShack:distinguishesIE6,IE7,IE8,Firefox(turn)ess:9036publicationtime:2009/10/229:58:48Selector{Property:value;/**/allbrowsersProperty:value\9;/**/allIEbrowser+property:value;/**/IE7_propertyOfcourse,,theabovedisplayvaluesaredisplayedforFirefox,IE8,IE7andIE6,'stakealookatthis:TheCSScodeisasfollows:{Height:60px;text-align:center;line-height:60px;border:1px;dashed;#bbb;background:#f7f7f7;font:15;Color:blue;//allbrowsersColor:brown\9;//allIEbrowser+color:red;//IE7_color:green;//IE6}HTMLcode:<bodystyle="width:500px;margin:0Auto";><pclass="ie"><spanstyle="display:block;display:none\9;">heyhey,boyevenuseFirefox,bluetext.</span><---[ifIE8]>'?!Thetextisbrown.<![endif]-->!<,--[if,IE,7]>,you,IE7,redtext!<![endif]-->!<<--[ifIE6]>,child,althoughthegreentextisdisplayed,butIE6isnotagoodthing!<![endif]-->!</p></body>,addittothefrontoftheHTML<<DOCTYPEHTMLPUBLIC""-//W3C//DTDXHTML1Transitional//EN",";,"><html","xmlns=",";>Thentheeffectwillbedifferent!Inaddition,patiblemode,,7,andFF/IE8:Background:blue;*background:orange;QuoteDisplayeffect:IE6/7:orangeFF/IE8:blueRationale:FF/IE8doesnotsupport*start,andIE6/7suppor
css-hack-兼容问题(-+兼容问题+css+hack) 来自淘豆网m.daumloan.com转载请标明出处.