资源描述:
《[Selectors.Specificity.and.the.Cascade(2012.9)].Eric.A.Meyer.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Selectors,Specificity,andtheCascadeEricA.MeyerBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoSelectors,Specificity,andtheCascadebyEricA.MeyerCopyright©2012O’ReillyMedia.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005Gravens
2、teinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-
3、9938orcorporate@oreilly.com.Editors:SimonSt.LaurentandMeghanBlanchetteCoverDesigner:KarenMontgomeryProductionEditor:KristenBorgInteriorDesigner:DavidFutatoCopyeditor:RachelLeachIllustrator:RobertRomanoProofreader:O’ReillyProductionServicesRevisionHistoryfortheFi
4、rstEdition:2012-09-25FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449342494forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.Selectors,Specificity,andtheCascade,theimageofasal
5、mon,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshave
6、beenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-34249-4[LSI]1348246251Tableo
7、fContentsPreface......................................................................v1.Selectors..............................................................1BasicStyleRules1ElementSelectors2DeclarationsandKeywords3Grouping4GroupingSelectors5GroupingDeclarati
8、ons6GroupingEverything7ClassandIDSelectors9ClassSelectors9MultipleClasses11IDSelectors13DecidingBetweenClassandID14AttributeSelectors15SimpleAttributeSelectors15Selec