CSS

Eric A. Meyer

出版社

O'Reilly

出版时间

2006-11-14

ISBN

9780596527334

评分

★★★★★

标签

计算机

书籍介绍

"CSS: The Definitive Guide, 3rd Edition," provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more. Simply put, Cascading Style Sheets (CSS) is a way to separate a document's structure from its presentation. The benefits of this can be quite profound: CSS allows a much richer document appearance than HTML and also saves time -- you can create or change the appearance of an entire document in just one place; and its compact file size makes web pages load quickly. "CSS: The Definitive Guide, 3rd Edition," provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more. Author Eric Meyer tackles the subject with passion, exploring in detail each individual CSS property and how it interacts with other properties. You'll not only learn how to avoid common mistakes in interpretation, you also will benefit from the depth and breadth of his experience and his clear and honest style. This is the complete sourcebook on CSS. The 3rd edition contains: Updates to reflect changes in the latest draft version of CSS 2.1 Browser notes updated to reflect changes between IE6 and IE7 Advanced selectors supported in IE7 and other major browsers included A new round of technical edits by a fresh set of editors Clarifications and corrected errata, including updated URLs of referenced online resources

AI导读
核心看点
  • 深入解析CSS1与CSS2属性及定位原理
  • 结合浏览器兼容性探讨CSS实际运用
  • 详细剖析选择器、层叠与继承机制
适合谁读
  • 希望夯实CSS基础的前端开发人员
  • 需要查阅CSS细节的网页设计师
  • 追求代码规范性的Web标准倡导者
读前提醒
  • 内容偏理论,建议配合实践查阅
  • 部分版本较老,需注意CSS3新特性
  • 可作为工具书随时翻阅,非速成指南
读者共识
  • 前端必读经典,讲解透彻且系统
  • 翻译质量参差不齐,建议对照原文
  • 适合进阶学习,零基础读者可能晦涩

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "左浮动元素的右外边界不会在其右边右浮动元素的左外边界的右边。一个右浮动元素的左外边界不会在其左边任何左浮动元素的右外边界的左边"
  • "引入css外部文件的两种方法为在html页面通过link,src属性(注意空链接时的陷阱!),再者是通过CSS文件本身通过@import url()引入,虽然这两种方式都可以加载进来CSS文件,可是link和@import也存在着细微的差别。 隶属上的差别 link属于XHTML标签,而@import完全是CSS提供的一种方式。link标签除了可以加载CSS外,还可以做很多其它的事情,比如定义RSS,定义rel连接属性等,@import就只能加载CSS了。此处注意浏览器的link src为空时候时会导致页面加载次数增多。 @import次数限制 传闻在IE6下,@import只能引入31次cs"
  • "First, however, let’s consider em and ex. In CSS, one “em” is defined to be the value of font-size for a given font."
  • "内容的背景也会应用到内边距"
  • "正常流中块级元素框的水平部分总和就等于父元素的width"
  • "如果一个块级正常流元素的height设置为一个百分数,这个值则是包含块height的一个百分数。 ... 将元素垂直居中的唯一办法就是把上下外边距都设置为25%"
  • "如果一个元素是初始包含块叠放上下文的一部分,而且其z-index值为负 ...好多字... **body元素为其后代建立了一个包含块。作为body元素后代的一个绝对定位就不能叠放在body的背景之下**(这句话错!) ...好多字... 所以z-index值为负时会导致不可预料的后果,所以使用的时候要小心。"
  • "在IE7之前的版本中,不同平台的Internet Explorer都不能正确地处理多类选择器。"
目录
Copyright
Dedication
Preface
Chapter 1. CSS and Documents
Section 1.1. The Web's Fall from Grace

显示全部
用户评论
有中文版呀,双鱼书,讲css很透彻
看的23版,1500多页,看到300多页的时候肝不动了,感觉有点浪费时间
看這個能搞清楚蠻多基本的概念。概念清楚了,再學習下高手的習慣。
此书虽是第三版,但也得追溯到2006年了,据说第四版今年会出来,后来的同学建议看第四版,或会讲解CSS3。 对于此书最大的感受是很基础,适合作为reference的书籍查找,看完这本,还想深入,应该精度css:the missing manual和css mastery.
值得一读再读。
有些章节没有读到,但现在所用的css的知识,基本都是这本书给的
收藏