资源描述:
《CSS2-Visual-Cheat-Sheet》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、CSS2VISUALCHEATSHEET★ESSENTIALREFERENCEGUIDETOCASCADINGSTYLESHEETSLEVEL2★HOWTO/2.SELECTORS★PSEUDOCLASSES★BACKGROUNDLEGENDCEElementCChild*:active✽backgroundU(s)AdAdjacentMatchesanyelement.Addsastyletoanelementthatisactivated.Setsallthebackgroundpropertiesin(pc)Pse
2、udoClassAttAttributeonedeclaration.(s)SelectorEShorthandT(s)THowtouse:UUniversal✽MatchesanyEelement(div,span,p,…).propertya:activemustcomeaftera:hoverintheCSSbackground-attachmentTTypeTNotesdefinitioninordertobeeffective.Setswhetherabackgroundimageisscroll
3、fixed
4、
5、inheritDDescendantEFfixedorscrollswiththerestoftheMatchesanyFelementthatisadescendantofD(s)page.:afteranEelement.Addscontentafteranelement.background-colorcolor_name
6、DesignedbyAntonioLupettiE>Fhex_number
7、•http://woorkup.com•http://www.twitter.com/woorkMatchesanyF
8、elementthatisachildofanC(s):beforeSetsthebackgroundcolorofanrgb_number
9、elementE.Addscontentbeforeanelement.element.transparent
10、inherit:first-childE:first-child:first-childAddsastyletoanelementthatisthefirstchildbackground-imageMatcheselementEwhenEisthefirstchildo
11、f(pc)url('image_url')
12、★HOWTO/1.SYNTAXitsparent.ofanotherelement.Setsthebackgroundimageforannone
13、inheritelement.:first-letterIncludeanexternalstylesheetE:link/E:visitedAddsastyletothefirstcharacterofatext.MatcheselementEifEisthesourceanchoroftopleft
14、topcenter
15、Uset
16、hefollowingsyntaxtoincludeanexternalstylesheetonlink(pc)ahyperlinkofwhichthetargetisnotyettopright
17、centerleft
18、yourpages:visited(:link)oralreadyvisited(:visited).:first-linebackground-positioncentercenter
19、centerAddsastyletothefirstlineofatext.Setsthestartingpositi
20、onofaright
21、bottomleft
22、
backgroundimage.bottomcenter
23、bottomE:active/E:hover/E:focus:focusright
24、x%y%
25、x-posy-dynamic(pc)pos
26、inheritMatchesEduringcertainuseractions.Addsastyletoanelementthathaskeyboa
27、rdinputfocus.BasicsyntaxE:lang(c):hoverbackground-repeatrepeat
28、repeat-x
29、TheCSSsyntaxismadeupofthreeparts:aselector,apropertyMatcheselementoftypeEifitisin(human