加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 Getting StartED with CSS

Getting StartED with CSS.pdf

Getting StartED with CSS

千寻数码印花
2011-02-22 0人阅读 举报 0 0 暂无简介

简介:本文档为《Getting StartED with CSSpdf》,可适用于IT/计算机领域

iGettingStartEDwithCSSDavidPowersiiGETTINGSTARTEDWITHCSSCopyright©byDavidPowersAllrightsreservedNopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisherISBN(pbk):ISBN(electronic):PrintedandboundintheUnitedStatesofAmericaTrademarkednamesmayappearinthisbookRatherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weusethenamesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademarkDistributedtothebooktradeworldwidebySpringerVerlagNewYork,Inc,SpringStreet,thFloor,NewYork,NYPhoneSPRINGER,fax,emailordersnyspringersbmcom,orvisitwwwspringeronlinecomForinformationontranslations,pleaseemailinfoapresscom,orvisitwwwapresscomApressandfriendsofEDbooksmaybepurchasedinbulkforacademic,corporate,orpromotionaluseeBookversionsandlicensesarealsoavailableformosttitlesFormoreinformation,referenceourSpecialBulkSales–eBookLicensingwebpageathttp:wwwapresscominfobulksalesTheinformationinthisbookisdistributedonan“asis”basis,withoutwarrantyAlthougheveryprecautionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthisworkThesourcecodeforthisbookisfreelyavailabletoreadersatwwwfriendsofedcomintheDownloadssectionCreditsPresidentandPublisher:PaulManningLeadEditor:BenRenowClarkeTechnicalReviewer:PeterElstEditorialBoard:ClayAndres,SteveAnglin,MarkBeckner,EwanBuckingham,TonyCampbell,GaryCornell,JonathanGennick,MichelleLowman,MatthewMoodie,JeffreyPepper,FrankPohlmann,BenRenowClarke,DominicShakeshaft,MattWade,TomWelshCoordinatingEditor:KellyMoritzCopyEditor:HeatherLangCompositors:MacPS,LLCIndexers:BIMIndexingandeServicesArtist:AprilMilneInteriorDesigner:AnnaIshchenkoivContentsataGlanceContentsataGlanceivContentsvAbouttheAuthorxvAbouttheTechnicalReviewerxviAcknowledgmentsxviiIntroductionxixChapter:WhatIsCSS,andWhyShouldILearnItChapter:HowDoIImprovetheLookofTextandLinksChapter:HowCanIImprovetheLayoutofMyTextChapter:HowCanIFlowTextAroundImagesChapter:HowDoIAddBackgroundsandBorderstoImprovetheLookofMyPageChapter:HowDoISolvetheMysteriesofWidthandHeightChapter:HowDoICreateDifferentlyStyledSectionsChapter:HowDoIStyleListsandNavigationMenusChapter:HowDoIStyleTablesChapter:HowDoIPositionElementsPreciselyonthePageChapter:AreThereAnyGuidelinesforBasicPageLayoutChapter:HowDoICreateStylesforPrintingAppendix:CSSPropertiesandSelectorsIndexvContentsContentsataGlanceivContentsvAbouttheAuthorxvAbouttheTechnicalReviewerxviAcknowledgmentsxviiIntroductionxixChapter:WhatIsCSS,andWhyShouldILearnIt�AshorthistoryofCSS�WhyCSShastakensolongtobeembracedbydesigners�ThetimeforCSShasfinallycome�WhataretheadvantagesofCSS�Writesimplermarkup�Turnintoaquickchangeartist�Gaingreatercontroloverthelookofpageelements�So,howdoIuseCSS�Whyaretheycalled“cascading”stylesheets�HowdoIwriteastylerule�FormattingCSSforeaseofmaintenance�AddingcommentstoyourCSS�WheredoIcreatemyCSS�Usingexternalstylesheets�Usinga<style>block�ApplyingastyledirectlytoanHTMLelement�Don’tforgetthecascade�UsingInternetExplorerconditionalcomments�Limitingwhichdevicesuseyourstyles�LearningtowriteCSSwell�Avoidingcommonmistakes�TestyourCSSearlyinseveralbrowsers�BuildingausefultoolsetforworkingwithCSS�Chapterreview�Chapter:HowDoIImprovetheLookofTextandLinks�ExploringtheCSStextproperties�Changingthedefaultfontandcoloroftext�Usingfontfamilytochoosearangeofalternativefonts�SettingcolorvaluesinCSS�Selectivelyapplyingadifferentfontandcolor�GettingStartEDwithCSSviChangingthesizeoffonts�Settinglengthwithpixels,ems,andotherunitsofmeasurement�Usingpercentages�Changingthelookoffonts�Italicizingtext�Makingtextbolderorlighter�Displayingtextinsmallcaps�Switchingbetweenuppercaseandlowercase�Aligningandspacingtext�Aligningtexthorizontally�Aligningtextvertically�Indentingthefirstlineoftext�Adjustingtheverticalspacebetweenlinesoftext�Addingorremovingspacebetweenwords�Increasingordecreasingthespacebetweenletters�Controllingwhitespaceandlinewrapping�Stylingtextlinks�Justrememberit’salovehaterelationship�Controllingunderlines�Makingfulluseofthecascade�Usingthefontshorthandproperty�Chapterreview�Chapter:HowCanIImprovetheLayoutofMyText�Slidingboxesandblocks�TwoHTMLtagsthatarethefriendsofCSS:<div>and<span>�HowCSScontrolsmargins�Understandinghowverticalmarginscollapse�Settingmarginvalues�Usingmarginstoimprovepagelayout�Removingthedefaultmarginsfromyourpages�Centeringpagecontent�Usingmarginlefttoindenttext�Usingnegativemargins�Applyingmarginstoinlineelements�Keepingyourstylesheetmanageable�Usingthemarginshorthandproperty�Organizingyourstylerulesforeasiermaintenance�Chapterreview�ContentsviiChapter:HowCanIFlowTextAroundImages�CSSclasses�CreatingandapplyingCSSclasses�Usingfloattoflowtextaroundimages�Creatinggenericclassestopositionimages�HowdoIcenteranimage�Whathappenswhentheimageistallerthanthetext�Usingcleartoforceelementsbelowafloatedimage�Whatifanelementistoowidetositalongsideafloat�Whathappenstomarginsalongsideafloat�UsingIDselectorstostyleuniqueelements�DecidingwhethertouseaclassoranID�Addingacaptiontoanimage�Chapterreview�Chapter:HowDoIAddBackgroundsandBorderstoImprovetheLookofMyPage�ControllingbackgroundswithCSS�Changingthebackgroundcolorofanelement�Addingabackgroundimage�Controllinghowbackgroundimagesrepeat�Fixingabackgroundimageinrelationtothebrowserviewport�Adjustingthepositionofabackgroundimage�Usingthebackgroundshorthandproperty�ControllingborderswithCSS�Settingabordercolor�Settingaborderstyle�Settingaborderwidth�Usingbordershorthandproperties�Usingborderstosimulateembossingandindenting�Understandinghowbordersaffectlayout�HowdoIgetridoftheblueborderaroundlinkimages�HowdoIpreventbackgroundsandbordersfrom|displayingunderfloats�Chapterreview�Chapter:HowDoISolvetheMysteriesofWidthandHeight�PaddingthefinalpieceoftheCSSboxmodel�Choosingbetweenmarginsandpadding�Usingpaddingtoaddspacearoundelements�Controllingwidthandheight�GettingStartEDwithCSSviiiUsingafixedheight�Usingminimumandmaximumlengthstoscaleimagesandtext�HowdoIstopcontentspillingoutofitscontainer�Controllingoverspillwiththeoverflowproperty�Usingoverflowasanalternativetoclearwithfloatedelements�Understandingthedifferencebetweenvisibilityanddisplay�Displayingamessagetousersofoldbrowsers�Chapterreview�Chapter:HowDoICreateDifferentlyStyledSections�Addingasidebar�Givingthesidebardifferentstyles�Addinganaccessiblepageheading�Switchingthesidebartotheotherside�Improvingtheimagecaptions�HowdoItellwhichstyleswillbeapplied�AreviewofselectorsinCSS�Usingspecificitytoworkoutwhichrulewins�Specificitytheeasyway�Specificitytheofficialway�Chapterreview�Chapter:HowDoIStyleListsandNavigationMenus�Stylingunorderedandorderedlists�Changingthesymbolornumber�Changingthepositionofthesymbol�Replacingthesymbolwithyourownimage�Usingabackgroundimageforgreatercontrol�Usingtheliststyleshorthandproperty�Changinglayoutwiththedisplayproperty�Settingdisplaytoinline�Settingdisplaytoinlineblock�Creatinganavigationbarfromalist�Creatingaverticaltextbasednavigationbar�Creatingahorizontaltextbasednavigationbar�UsingCSSspritesinanavigationbar�HowdoIcontinueanumberedlistafterabreak�UsingCSStogeneratenumberedsequences�Addingcontentwith:beforeand:after�ContentsixAddingimageswithpseudoelements�GeneratingcontentfromanHTMLattribute�Usingthecontentpropertytogeneratenumberedsequences�Usinggeneratedcontentwithnumberedlists�Generatingsubsectionnumberswithnestedlists�Chapterreview�Chapter:HowDoIStyleTables�Understandingtheanatomyofatable�Basictablestructure�UsingHTMLtagstodefinesectionsofatable�Definingtablecolumns�Definingtableheaderandfooterrows�Groupingtablerowsintosections�Howbrowserslayouttables�StylingtableswithCSS�UsingCSSfortableborders�Addingborderstotablecells�HowdoIstopborderwidthsfrombeingdoubled�Addingborderstocolumnsandrows�Applyingotherstylestocolumns�What’stheCSSequivalentofcellspacing�What’stheCSSequivalentofcellpadding�Controllingthepositionofthetablecaption�Handlingemptycells�HowcanIcontrolthewidthofmytable�HowdoIcreatesc

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/49

Getting StartED with CSS

仅供在线阅读

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利