|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
目前我们的站就是div+CSS做的,美工可以通过css直接控制我的程序输出的页面动态数据的样式DIV就只是布局元素.
网页制造poluoluo文章简介:evotech网站收拾的CSS选择器撑持列表.
Update6/30/09:Firefox3.5wasreleasedtoday.LikeSafari3.1andnewer(includingSafari4beta),Opera9.64andnewerandGoogleChromeallsupportALLCSS2.1andCSS3selectors.HereisabreakdownofallthebrowsersI’vetested:
- Green/√meanscurrentsupport.
- Orange/Δmeansthatthebrowsershavesomesupportfortheselector.
- Red/Χmeansthatthebrowserisnon-compliant.
BrowsersPatternMeaningIE6IE7IE8FireFoxSafariOperaNetScCHROMEE:active
E:hover
E:focus
Dynamicpseudo-classes
MatchesEduringcertainuseractions.
ΔΔ√√√√√√ΔΔ√√√√√√ΧΧ√√√√√√E:before
E:after
Staticpseudo-classes
SeegeneratedcontentΧΧ√√√√√√ΧΧ√√√√√√iPhnWindowsXPMacOSXSelectorSaf3.2Saf3.0googchrmFF3.5FF3.0
9.0
Saf
3.0
IE8IE7inIE8
Saf4betaSaf3.2FF3*√√√√√√√√√√√√√√√√√√√√√E√√√√√√√√√√√√√√√√√√√√√.class√√√√√√√√√√√√Δ√√√√√√√√#id√√√√√√√√√√√√√√√√√√√√√EF√√√√√√√√√√√√√√√√√√√√√E>F√√√√√√√√√√√√Χ√√√√√√√√E+F√√√√√√√√√√√√Χ√√√√√√√√E[attr]√√√√√√√√√ΔΔΔΧ√√√√√√√ΔE[attr=val]√Δ√√√ΔΔΔΔ√√√Χ√√√Δ√√ΔΔE[attr~=val]√Δ√√√ΔΔ√Δ√ΔΔΧ√√√Δ√√ΔΔE[attr|=val]√Δ√√√ΔΔ√Δ√ΔΔΧ√√√Δ√√ΔΔ:first-child√Δ√√√ΔΔΔΔ√ΔΔΧ√√√Δ√√Δ√:link√√√√√√√Χ√√√√√√√√√√√√√:visited√√√√√√√Χ√√√√√√√√√√√√√:lang()√√√√√√√Δ√√ΧΧΧ√√√Χ√√√√:before√√√√√√√√√√ΧΧΧ√√√√√√√Χ::before√√√√√√√√√ΧΧΧΧ√√√√√√√Χ:after√√√√√√√√√√ΧΧΧ√√√√√√√Χ::after√√√√√√√√√ΧΧΧΧ√√√√√√√Χ:first-letter√√√√√√√√√√√√√√√√√√√√Χ::first-letter√√√√√√√√√ΧΧΧ√√√√√√√√Χ:first-line√√√√√√√√√√√√√√√√√√√√Χ::first-line√√√√√√√√√ΧΧΧ√√√√√√√√ΧThefollowingselectorsarenewtoCSS3(abovewereinpreviousversions)E[attr^=val]√Δ√√√ΔΔΧΔ√ΧΧΧ√√√Δ√√ΔΔE[attr$=val]√Δ√√√ΔΔΧΔ√ΧΧΧ√√√Δ√√ΔΔE[attr*=val]√Δ√√√ΔΔ√Δ√ΧΧΧ√√√Δ√√ΔΔE~F√√√√√√√√√√√√Χ√√√Χ√√√Χ:root√√√√√√√Χ√ΧΧΧΧ√√√√√√√√:last-child√Χ√√√ΔΔΧΧΧΧΧΧ√√√Χ√√ΔΔ:only-child√Χ√√√ΔΔΧΧΧΧΧΧ√√√Χ√√ΔΧ:nth-child()√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:nth-last-child()√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:first-of-type√Δ√√ΧΧΧΧΔΧΧΧΧ√√√Χ√ΧΧΧ:last-of-type√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:only-of-type√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:nth-of-type()√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:nth-last-of-type()√Χ√√ΧΧΧΧΧΧΧΧΧ√√√Χ√ΧΧΧ:empty√Χ√√√ΔΔΧΧΧΧΧΧ√√√Χ√√ΔΔ:not()√√√√√√√Χ√ΧΧΧΧ√√√√√√√√:target√√√√√√√Χ√ΧΧΧΧ√√√√√√√√:enabled√√√√√√√√√ΧΧΧΧ√√√Χ√√√Χ:disabled√√√√√√√√√ΧΧΧΧ√√√Χ√√√Χ:checked√√√√√√√√√ΧΧΧΧ√√√Χ√√√√IE8CSSSelectorSupport
IE8SupportstheCSS2.1selectors,includingpseudoclassesbutnotpseudoelements.(SeeDoubleColonNotation).IE8hassupportforhassupportforAccessibleRichInternetApplications(ARIA)
ToforceIE8torenderyourpageinIE8compliancemode,includethefollowingmetatag:- <metahttp-equiv="X-UA-Compatible"content="IE=8"/>
复制代码 IE7withinIE8CSSSelectorSupport
TheCSSselectorsupportofIE7withinIE8(whenIE8displayesapageinIE7compatibilitymode)isidenticaltoIE7asastandalone.However,theCSSpropertiesdorenderdifferently.IwillhavetoblogaboutthatinaseperateentrywhenIgetaroundtogarneringallthedifferences.
IE7withinIE8understandstheIE7starhack.BecausetheCSSrendersdifferentlyeventhoughtheselectorsupportisthesame,itmaytakeabitbeforeIfigureoutthebestfilter.
iPhone
TheoriginalversionoftheiPhonecamewithaSafaribrowserthatdidnotsupportallCSS3selectors.ThecurrentlyactiveversionofSafariontheiPhonedoessupportallCSS3selectors.Thegridbelowhasbeenupdatedtoreflectthat.IhavekepttheoldversionoftheiPhoneCSS3supportjustincaseyouwanttosupport"unlocked"versionoftheiPhone,thatdonotgetupdatedasoften.Personally,IassumealliphoneshittingmyappssupportallCSS3.FormoreinformationoniPhones,seeiPhoneCSSSupport
Safari4BetaCSSSelectorSupport
Safari4.0BetawasreleasedFeb.24,2008.SinceSafari3.2supportedallCSSselectors,thisSafari4partofthepostmaybeabitmute.Safari4betaalsosupportsARIAandforCSSeffects,animationandcanvas.Italsoseemstohavemanymorenativedebuggingtoolsnativetotheapplication(ormaybewhatIseeisacarryoverfromthetoolsIinstalledinmypreviousversionofSafari).Safari4isAcid3compliant!
IE8Notes:
- E[attr]Doesnotmatchtheattributewhentheattributevalueisemptyornotwrittencorrectly.
IE7withinIE8Notes:
- E[attr]SameasIE8,doesnotmatchtheattributewhentheattributevalueisemptyornotwrittencorrectly.
- E[attr~=val]Onlyissueisthatforthisselectortowork,thevalueoftheattributeiscasesensitive
- E[attr|=val]IE7hassomecasesensitivityissues,butgenerallyworks.
- :first-childIE7considersacommentoratextnodeasafirst-child,whenitshouldn’t:onlyelementsshouldbeconsideredchildren.So,IE7matchesthefirstcommentinsteadofthefirstchild.Ifitseestextoracommentasthefirstchild,itwillnotconsiderthefirstelementasthefirstchild.
Div全称division意为“区分”使用DIV的方法跟使用其他tag的方法一样。 |
|