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

商品描述(中文翻譯)

確切來說,層疊樣式表(Cascading Style Sheets)中的「層疊」是如何運作的?這本簡明的指南展示了 CSS 選擇器在將樣式規則應用於不同網頁元素時的強大與簡單。您將學習到頁面的呈現如何依賴於眾多樣式規則,以及它們在文檔結構中運作的複雜方式——有時甚至會發生衝突。

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

- 學習如何創建適用於大量相似元素的 CSS 規則
- 將規則分組以縮小樣式表並加快下載速度
- 理解元素如何從其父元素繼承樣式
- 探索讀者和瀏覽器偏好如何影響您的頁面呈現
- 檢視特異性——瀏覽器用來在兩個衝突樣式規則之間進行選擇的方法
- 理解特異性和繼承如何結合形成層疊
- 獲取所有 CSS3 選擇器的詳細資訊