作者: Casario
Wormser
Saltzman图书
分类: 软件
资源格式: PDF
版本: 英文版
出版社: Apress
书号: 978-1-4302-4335-9
发行时间: 2012年
地区: 美国
语言: 英文
简介:
内容介绍:
CSS即层迭样式表(Cascading Stylesheet)。 在网页制作时采用CSS技术,可以有效地对页面的布局、字体、颜色、背景和其它效果实现更加精确的控制。 只要对相应的代码做一些简单的修改,就可以改变同一页面的不同部分,或者页数不同的网页的外观和格式。CSS3是CSS技术的升级版本,CSS3语言开发是朝着模块化发展的。以前的规范作为一个模块实在是太庞大而且比较复杂,所以,把它分解为一些小的模块,更多新的模块也被加入进来。这些模块包括: 盒子模型、列表模块、超链接方式 、语言模块 、背景和边框 、文字特效 、多栏布局等。
目录:
About the Authors.................................................................................................. xv
About the Technical Reviewer.............................................................................. xviii
About the Cover Image Designer.......................................................................... xix
Acknowledgments................................................................................................... xx
Introduction................................................................................................... .......... xxi
Chapter 1: CSS Basics ..............................................................................................1
CSS3 Modules ............................................................................................................2
Anatomy of a CSS3 declaration ............................................................................4
Understanding the Box Model ...............................................................................7
Understanding CSS inheritance ............................................................................8
Solution 1-1: Discovering CSS3 compatibilities across browsers .......................9
What’s involved ...................................................................................................10
How to build it ......................................................................................................10
Expert tips ............................................................................................................13
Solution 1-2: Adding a CSS3 file with JavaScript .................................................13
What’s involved ...................................................................................................13
How to build it ......................................................................................................15
Expert tips ............................................................................................................16
Solutions 1-3: Declaring multiple backgrounds for your web page ....................16
What’s involved ...................................................................................................17
How to build it ......................................................................................................17
Expert tips ............................................................................................................18
Solution 1-4: Controlling the image aspect ratio ..................................................19
What’s involved ...................................................................................................19
How to build it ......................................................................................................19
Expert tips ............................................................................................................21
Solution 1-5: Resetting CSS3 default values ........................................................22
What’s involved ...................................................................................................22
How to build it ......................................................................................................22
Summary ..................................................................................................................23
Chapter 2: CSS Selectors .......................................................................................25
Differences compared to CSS2 selectors..............................................................25
Pseudo-classes ...................................................................................................26
下载体验