CSS Mastery

Simon Collison, Andy Budd, Cameron Moll

出版社

Apress

出版时间

2009-10-29

ISBN

9781430223979

评分

★★★★★
书籍介绍
Building on what made the first edition a bestseller, CSS Mastery: Advanced Web Standards Solutions, Second Edition unites the disparate information on CSS-based design spread throughout the internet into one definitive, modern guide. Revised to cover CSS3, the book can be read from front to back, with each chapter building on the previous one. However, it can also be used as a reference book, dipping into each chapter or technique to help solve specific problems. In short, this is the one book on CSS that you need to have. This second edition contains: * New examples and updated browser support information * New case studies from Simon Collison and Cameron Moll * CSS3 examples, showing new CSS3 features, and CSS3 equivalents to tried and tested CSS2 techniques What you'll learn * The best practice concepts in CSS design. * The most important (and tricky) parts of CSS * Identify and fix the most common CSS problems * How to deal with the most common bugs * Completely up to date browser support information * Covers CSS3 as well as CSS2 showing you the future of CSS Who this book is for This book will be aimed towards intermediate web designers/developers, although the examples should be simple enough for novice designers/developers with a basic understanding of CSS to grasp. Readers will probably have read beginner/intermediate instructional books such as Web Standards Solutions and will be looking for more practical and in-depth information. This book is likely to have a broad appeal, attracting intermediate developers wanting to improve their skills as well as advanced developers wanting a useful reference. The CSS 2/3 content of the book is delivered in a way that allows readers to learn CSS2 techniques that they can implement now in professional work, and then gem up on CSS3 techniques if they want to start looking towards the future. Table of Contents * Setting the Foundations * Getting Your Styles to Hit the Target * Visual Formatting Model Overview * Using Backgrounds for Effect * Styling Links * Styling Lists and Creating Nav Bars * Styling Forms and Data Tables * Layout * Bugs and Bug Fixing * Case Study: Roma Italia * Case Study: Climb the Mountains
AI导读
核心看点
  • 系统梳理CSS布局核心:定位、浮动与边距。
  • 深入解析CSS3特性及多浏览器兼容方案。
  • 强调语义化标记与高效选择器命名规范。
适合谁读
  • 具备HTML/CSS基础的前端开发者。
  • 希望系统掌握CSS高级技巧的工程师。
  • 需要查阅CSS兼容性与最佳实践的读者。
读前提醒
  • 部分IE6兼容内容已过时,需结合现代标准。
  • 建议搭配代码实践,避免仅停留在理论阅读。
  • 可作为案头参考书,按需查阅特定章节。
读者共识
  • 结构清晰,是系统学习CSS的经典之作。
  • 部分技术细节陈旧,需甄别过时内容。
  • 译文质量参差,建议对照原文或代码阅读。

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

精彩摘录
  • "所有CSS布局的根本都是3个基本概念:定位、浮动、margin操纵。"
  • "在符合标准的浏览器中,如果元素的内容太大,它只会超出box之外。但是,IE会扩展整个元素(。。。-_-)"
  • "Meaningful markup provides the developer with several important benefits. Meaningful pages are much easier to work with than presentational ones. For example, say you need to change a quotation on a page. If the quotation is marked up correctly, it is easy to scan through the code until you find the"
  • "When naming your IDs and classes, it is important that you keep the names as “unpresentational” as possible. For instance, if you want all of your form notification messages to be red, you could give them a class of red. This is fine as long as there are no other red elements on the page. However, s"
  • "At the same time, they can be overused and even abused. Novice CSS authors often add classes to nearly everything in an attempt to get fine-grained control over their styles. Early WYSIWYG editors also had the tendency to add classes each time a style was applied. Many developers picked up this bad "
  • "In the preceding example, each element is identified as being part of a news story by using an individual news-related class name. This has been done to allow news headlines and text to be styled differently from the rest of the page. However, you don’t need all these extra classes to target each in"
  • "When browser manufacturers started to create standards-compliant browsers, they wanted to ensure backward compatibility. To accomplish this, they created two rendering modes: standards mode and quirks mode. In standards mode, the browser renders a page according to the specifications, and in quirks "
  • "With even a moderately complicated style sheet, it is likely that two or more rules will target the same element. CSS handles such conflicts through a process known as the cascade. The cascade works by assigning an importance to each rule. Author style sheets are those written by the site developers"
用户评论
详尽清晰文笔佳
作者对CSS技巧的一些经验之谈。并提及了CSS 3。
入门css的好书
CSS3万岁~~~
除了case完全啃完,所以还是practice makes perfect,一边看一边练,一点点递进,其实css的知识点真的不算多,最奇妙的是一个效果可以有好几种方法去实现,大头还是兼容性问题,但是规则清楚之后真是没什么。作者开头几句话说的很欢乐,国外的大神们都喜欢引一些对人类天性的思考。最大的收获大概就是更好的用了后代选择器,再也不要一堆class id的去控制自己的css了。css3是个很令人振奋的地方,语意化是一直要努力的方向。
虽然内容有些过时了,但是整体上还是非常不错的一本书,结构清晰,能够带你完整又系统地学习CSS相关知识,我很喜欢书中实现的日历样式,非常的精巧时尚
内容较旧 可读性差
几年前看的,当时印象深刻
因为是6年前的书了,所以很多内容过时了,比如书中讨论了很多关于IE6以及更低版本IE浏览器的支持,比如大量使用background image. 像CSS这样更新换代很快的语言,还是推荐看更新的书.
还是有点老了...
收藏