没有合适的资源?快使用搜索试试~ 我知道了~
CSS 实战手册(第4版)英文完整版 PDF
5星 · 超过95%的资源 需积分: 18 121 下载量 23 浏览量
2017-12-02
01:20:42
上传
评论 5
收藏 59.28MB PDF 举报
温馨提示
试读
716页
本书从介绍最基本的CSS知识开始,将关于CSS的选择器、继承、层叠、格式化、边距、填充、边框、图片、网站导航、表格、表单、浮动布局、定位网页上的元素等技术通过逐步地讲解与教程串联了起来。每章内容从简单到复杂,一步一步地建立起一个完整的教程示例,并在每章都会详细讨论一些技巧、最佳实践和各浏览器之间一致性的兼容问题及如何进行修复,在各章节的最后都给出了相应教程的详细操作步骤。
资源推荐
资源详情
资源评论
“The Missing Manual series is simply the most intelligent and usable series of guidebooks…”
—KEVIN KELLY, CO-FOUNDER OF
WIRED
David Sawyer McFarland
CSS
4th
Edition
David Sawyer McFarland
is a web developer,
teacher, and author.
He’s been building
websites since 1995,
when he designed
an online magazine
for communication
professionals. David has
taught web design at the
UC Berkeley Graduate
School of Journalism, the
Center for Electronic Art,
the Art Institute of
Portland, and Portland
State University. Currently,
he’s a Teaching Team
Leader at the online
education site, Treehouse
http://teamtreehouse.com.
Answers found here!
CSS lets you create professional websites, but learning
its finer points can be tricky—even for seasoned web
developers. This fully updated edition provides the most
modern and eective tips, tricks, and tutorial-based
instruction on CSS available today. Learn how to use new
tools such as Flexbox and Sass to build web pages that
look great and run fast on any desktop or mobile device.
Ideal for casual and experienced designers alike.
The important stu you need to know
n
Start with the basics. Write CSS-friendly HTML, including the
HTML5 tags recognized by today’s browsers.
n
Design for mobile devices. Create web pages that look great
when visitors use them on the go.
n
Make your pages work for you. Add animations that capture
the imagination, and forms that get the job done.
n
Take control of page layouts. Use professional design
techniques such as floats and positioning.
n
Make your layouts more flexible. Design websites with
Flexbox that adjust to different devices and screen sizes.
n
Work more eciently. Write less CSS code and work with
smaller files, using Syntactically Awesome Style Sheets (Sass).
missingmanuals.com
twitter: @missingmanuals
facebook.com/MissingManuals
Web Design/CSS
ISBN: 978-1-491-91805-0
US $39.99 CAN $45.99
III
Contents
The Missing Credits ........................................ ix
Introduction ..............................................xiii
What Is CSS? ..................................................... xiii
What You Need to Know ........................................... xiv
HTML: The Barebones Structure .................................... xiv
Document Types .................................................. xiv
How HTML Tags Work ..............................................xv
HTML5: More Tags to Choose From .................................xvii
Software for CSS .................................................xvii
About This Book ................................................. xviii
The Very Basics ....................................................xx
About the Online Resources ........................................ xxi
Safari® Books Online ..............................................xxii
Part One: CSS Basics
CHAPTER 1:
HTML and CSS ............................................. 3
HTML: Past and Present .............................................3
Writing HTML for CSS ...............................................5
The Importance of the Doctype .....................................17
How CSS Works ...................................................19
CHAPTER 2:
Creating Styles and Style Sheets ...........................21
Anatomy of a Style ................................................. 21
Understanding Style Sheets .........................................24
Internal Style Sheets ...............................................25
External Style Sheets ...............................................26
Tutorial: Creating Your First Styles ...................................27
CHAPTER 3:
Selectors: Identifying What to Style ...................... 41
Type Selectors: Styling HTML Tags ...................................42
Class Selectors: Pinpoint Control ....................................43
ID Selectors: Specific Page Elements .................................46
Styling Groups of Tags ..............................................49
Styling Tags Within Tags ............................................50
Pseudo-Classes and Pseudo-Elements ...............................55
CONTENTS
IV
Attribute Selectors .................................................59
Child Selectors ....................................................61
Siblings ...........................................................67
The :target Selector ................................................68
The :not() Selector .................................................69
Tutorial: Selector Sampler ...........................................70
CHAPTER 4:
Saving Time with Style Inheritance ....................... 85
What Is Inheritance? ...............................................85
How Inheritance Streamlines Style Sheets ............................86
The Limits of Inheritance ............................................88
Tutorial: Inheritance ................................................90
CHAPTER 5:
Managing Multiple Styles: The Cascade ................... 97
How Styles Cascade ................................................98
Specificity: Which Style Wins .......................................102
Controlling the Cascade ...........................................105
Tutorial: The Cascade in Action ......................................111
Par t Two: Applied CSS
CHAPTER 6:
Formatting Text ...........................................121
Using Fonts .......................................................121
Using Web Fonts .................................................126
Discovering Google Web Fonts .....................................140
Adding Color to Text ..............................................147
Changing Font Size ................................................151
Formatting Words and Letters .....................................156
Adding Text Shadow ..............................................160
Formatting Entire Paragraphs ......................................162
Styling Lists ......................................................168
Tutorial: Text Formatting in Action ..................................172
CHAPTER 7:
Margins, Padding, and Borders .......................... 185
Understanding the Box Model ......................................185
Controlling Space with Margins and Padding .........................187
Adding Borders ...................................................194
Coloring the Background ..........................................198
Creating Rounded Corners .........................................199
Adding Drop Shadows .............................................201
Determining Height and Width .................................... 204
Wrapping Content with Floating Elements ...........................210
Tutorial: Margins, Backgrounds, and Borders .........................216
CONTENTS
V
CHAPTER 8:
Adding Graphics to Web Pages .......................... 229
Discovering CSS and the <img> Tag .................................229
Adding Background Images ........................................231
Controlling Repetition .............................................234
Positioning a Background Image ....................................236
Using Background Property Shorthand ..............................247
Using Multiple Background Images. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249
Utilizing Gradient Backgrounds .....................................252
Tutorial: Enhancing Images .........................................261
Tutorial: Creating a Photo Gallery ...................................266
Tutorial: Using Background Images .................................270
CHAPTER 9:
Sprucing Up Your Site’s Navigation ...................... 279
Selecting Which Links to Style ......................................279
Styling Links .....................................................283
Building Navigation Bars ...........................................289
CSS-Style Preloading Rollovers .....................................298
Styling Particular Types of Links ...................................300
Tutorial: Styling Links ..............................................302
Tutorial: Creating a Navigation Bar ................................. 308
CHAPTER 10:
CSS Transforms, Transitions, and Animations ............ 319
Transforms .......................................................319
Transitions ...................................................... 330
Animations .......................................................338
Tutorial ......................................................... 349
CHAPTER 11:
Formatting Tables and Forms ............................ 357
Using Tables the Right Way ........................................357
Styling Tables ....................................................359
Styling Forms ....................................................366
Tutorial: Styling a Table ............................................370
Tutorial: Styling a Form ............................................375
Part Three: CSS Page Layout
CHAPTER 12:
Introducing CSS Layout .................................. 385
Types of Web Page Layouts ........................................385
How CSS Layout Works ............................................387
Layout Strategies .................................................392
CHAPTER 13:
Building Float-Based Layouts ............................ 397
Applying Floats to Your Layouts ....................................401
Overcoming Float Problems ....................................... 405
Tutorial: Multiple-Column Layouts ..................................417
剩余715页未读,继续阅读
资源评论
- qq_292768012018-12-23还是很不错的吧
- limei90s2018-12-24还可以,比较清晰
- hunter_pu82018-07-05很清晰, 需要的积分也不多。 赞!!
- BinaryTreeEx2019-04-04感谢分享,支持发帖,书不错。
cczhou12345
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功