CSS3 Quick Syntax Reference.pdf

所需积分/C币:10 2019-05-17 09:30:55 2.13MB PDF
14
收藏 收藏
举报

CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language, 2nd Edition: A concise reference to CSS3 What You Will Learn Use the various selectors available in CSS3 Leverage various other CSS properties Design and build web UIs using color, text, spacing, fonts, background, and more Work with lists, tables, and media in CSS3 Employ CSS3 best practices The CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language is a 150-page syntax reference to the Cascading Style Sheets language. It presents the essentials of CSS3 in a well-organized format that can be used as a handy reference. You won’t find any technical jargon, bloated samples, drawn-out history lessons or witty stories in this book. What you will find is a CSS reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any CSS programmer or web developer.
CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets language Mikael olsson Hammarland. Finland ISBN-13(pbk):978-1-4842-49024 ISBN-13( Electronic:978-1-4842-49031 https://doi.org/10.1007/978-1-4842-4903-1 Copyright 2019 by Mikael Olsson This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Steve Anglin Development Editor: Matthew Moodie Coordinating Editor: Mark Powers Cover designed by eStudio Calamar CoverimagedesignedbyFreepik(www.freepik.com) Distributed to the book trade worldwide by springer Science+Business Media New York 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505 e-mailorders-ny@springer-sbm.com,orvisitwww.springeronline.comApressMedia,Llcisa California LLC and the sole member(owner) is Springer Science Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslations,pleasee-maileditorial@apress.com;forreprint,paperback,oraudio rightspleaseemailbookpermissions@springernature.com Apress titles may be purchased in bulk for academic, corporate, or promotional use e Book versions and licenses are also available for most titles. For more information reference our Print and ebook Bulksaleswebpageathttp://www.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this book is available to readersonGithubviathebooksproductpagelocatedatwww.apress.com/9781484249024.Formore detailedinformationpleasevisithttp://www.apress.com/source-code Printed on acid-free paper WOW! eBook www.wowebook.org Table of contents About the author mxi About the technical reviewer mmX Introduction Chapter 1: Using CSS ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Internal Style Sheet..ma.....nni. Inline Style.…,,.,., …1 External Style Sheet Testing environment 3 View Source 4 Comments Whitespace Chapter 2: Grouping RRRBRBRRBBRBERBRRERRaN Ungrouped Rules Grouped selectors 7778 Grouped Declarations Grouped selectors and Declarations 8 Chapter 3: Class and ID Selectors m mmat Class selecto,…………………9 Class example 10 Selector. ID Example Class and ID Guidelines WOW! eBook www.wowebook.org TABLE OF CONTENTS Chapter 4: Attribute Selectors ammmmmmmmmmmmmmammammamnam 13 Attribute selector 13 Attribute value selector Language Attribute Selector Delimited value selector Value Substring selector. Value start Selector mmmmmm. 15 Value end selector Chapter 5: Pseudo Selectors emanant 17 Pseudo-Elements first-letter and first-line before and after Pseudo-Classes 19 Dynamic Pseudo-Classes 19 Structural| Pseud0- Classes……21 first-childmm 21 last-child 21 0nly-chid..,,,,,,,,,,,,,,,,,22 only-of-type 22 first-of-type last-of-type 23 nth-child nth-of-type .mama nth-last-of-type .n nth-last-chilld 26 empty…......,...,,26 roc WOW! eBook www.wowebook.org TABLE OF CONTENTS User Interface Pseudo-Classes 27 enabled and disabled gm. 27 checked.wm. valid and invalid required and optional out-of-range and in-range 29 read-write and read-only .m other pseudo-Classes 30 target...,.,,,,,,,,,……31 ang 31 not 32 Chapter6: Relationship Selectors,,,,,,,…,,,……33 HTML Hierarchy 33 Inheritance 34 Adjacent Selector. ..mmmmmmmmmmmmmmmmmm......mmmmm 35 Descendent selector Direct child selector mmm. 36 General Sibling Selector∴… 37 Chapter 7: Specificity ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 39 Selector Specificity. Cascade 40 Designer styles Specificity Guidelines. Chapter 8: Colors amamAmmARmIRBBEBIBBERRBERBIRBERRRAIRBAARIRIIRIIMIRIIIIII 43 Named notati0n,……243 Hexadecimal Notation 43 Short hexadecimal notation WOW! eBook www.wowebook.org TABLE OF CONTENTS RGB Notation…144 RGBA Notation, mmmm 45 HSL Notation HSLA Notation Chapter9:Unts,…,…,,,1,,1,,147 Absolute Units Typographical Units…… Relative Units Font-Relative Units Viewport Units. Unit values 50 ariables… 51 Calculations 52 Chapter 10: CSS Properties ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■ 53 Generic Keywords. Quirks Mode. endor prefixes…15 Progressive Enhancement 56 Chapter11:Text,,,,,,,,,,…,,,,,57 color text- transform.…57 text-decoration 58 text-indent 58 text- align..,.,,,,,,,,,,,,……59 direction.…159 text- shadow,……………………………………… 60 WOW! eBook www.wowebook.org TABLE OF CONTENTS box-shadow 61 text- rendering…....,,,,,,,,,,,,,,…62 Chapter 12: Text Spacing RBaRRRBRRRInt 63 ine- height…… 63 word-spacing and letter-spacing .. ite- space… 64 Chapter13:Font,,,…,,,,,,,,,,,…,,,67 font-family 67 font-size n,68 font-style ,68 font- variant,,……68 font-weight 69 font Custom Fonts 70 Chapter 14: Background maman background-color background-image......................... background- repeat...,.,,,…,…………72 background-attachment….………………72 background- position.…,,…,,…,,…,,…,…,…73 background-size. background-clip background-origin ..mno. background.mmmmmnnmnmmemmmnmnmnmncmemmncmnnmmmn, 76 Multiple backgrounds WOW! eBook www.wowebook.org TABLE OF CONTENTS Chapter 15: Gradients mmammamammammmammammmma 79 Linear gradients Radial gradients mmm.82 Repeating Gradients Chapter 16: Box Model ummmmmammmmammammmammmamma 89 nline and e|oCk…90 Span and div.mnanmaamaaamnnanaanmmmn 91 Semantic e| ements……92 Chapter 17: Border 95 border-style. border-width border-color 97 border m 98 border-adUS…99 Chapter18:0 utline,,,…,,…,,…,…,…,…,…,,…101 outline-style.................................101 outline-width, outline-color 102 outline,… 102 outline-offset 103 Chapter 19: Margin and Padding ammmammmamammmmmmamm 105 Padding….,,…105 Margin.……,……106 Chapter 20: Dimension ammmaaamammmaammmmmmmmmmmmmmmmmamn 109 width and height… 109 min-width and min- height…,,,,,,,,,,,,,,,,…,……,110 WOW! eBook www.wowebook.org TABLE OF CONTENTS max-Width and max-height box-SIZIng 111 Chapter 21: Positioning smmmmaaaaaaaanana IIIRRRn 115 position 115 static 116 relative ,116 absolute 117 fixed 117 0Verf|oW,,,,,…………… 118 118 z-index 120 vertical- align.……121 Centering Transformations 124 Chapter 22: Classification g129 display 129 visibility..…… 131 opacity 131 float 132 Cear,…133 cursor, mmmmmm 134 Chapter23:List,,,,,,,,…,m…,,,,…,,,m,m,137 list-style-type.ameanaeneaanan ,137 list-style-image list-style-position... 138 list-style 139 WOW! eBook www.wowebook.org

...展开详情
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享宗师

关注 私信
上传资源赚钱or赚积分
最新推荐
CSS3 Quick Syntax Reference.pdf 10积分/C币 立即下载
1/0