Selectors, Specificity, and the Cascade (Paperback)

Eric A. Meyer

  • 出版商: O'Reilly
  • 出版日期: 2012-11-13
  • 定價: $350
  • 售價: 9.5$333
  • 貴賓價: 9.0$315
  • 語言: 英文
  • 頁數: 86
  • 裝訂: Paperback
  • ISBN: 1449342493
  • ISBN-13: 9781449342494
  • 相關分類: CSS
  • 立即出貨

買這商品的人也買了...

商品描述

Exactly how does the "cascade" in Cascading Style Sheets work? This concise guide demonstrates the power and simplicity of CSS selectors for applying style rules to different web page elements. You’ll learn how your page’s presentation depends on a multitude of style rules and the complex ways they function—and sometimes collide—within the document’s structure.

This guide is a chapter from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Selectors, Specificity, and the Cascade, you’ll receive a significant discount on the entire Definitive Guide when it’s released. Why wait when you can learn how to use selectors and other key CSS 3 features right away?

  • Learn how to create CSS rules that apply to a large number of similar elements
  • Group rules to make style sheets smaller and download times faster
  • Understand how elements inherit styles from their parents
  • Discover how reader and browser preferences affect your page presentation
  • Examine specificity—the method browsers use to choose between two conflicting style rules
  • Get a handle on how specificity and inheritance combine to form the cascade
  • Get details on all of the CSS3 selectors

商品描述(中文翻譯)

CSS: The Definitive Guide 第四版的這本書提供了一個簡潔的指南,解釋了層疊樣式表(Cascading Style Sheets)中的「層疊」是如何運作的。這本指南展示了使用 CSS 選擇器將樣式規則應用於不同的網頁元素的強大和簡單之處。您將學習到,您的網頁的呈現取決於多種樣式規則以及它們在文件結構中的複雜方式,有時會發生衝突。

這本指南是即將發行的《CSS: The Definitive Guide》第四版中的一章。當您購買印刷版或電子書版的《Selectors, Specificity, and the Cascade》時,您將在《CSS: The Definitive Guide》全書發行時獲得顯著的折扣。為什麼等待呢?您可以立即學習如何使用選擇器和其他關鍵的 CSS 3 功能。

本書將教您如何創建適用於大量相似元素的 CSS 規則,將規則分組以使樣式表更小並加快下載速度,了解元素如何從其父元素繼承樣式,發現讀者和瀏覽器偏好如何影響您的頁面呈現,研究特定性(瀏覽器用於選擇兩個衝突樣式規則之間的方法),掌握特定性和繼承如何結合形成層疊,並獲得有關所有 CSS3 選擇器的詳細信息。