Colors, Backgrounds, and Gradients: Adding Individuality with CSS (Paperback)

Eric A. Meyer

  • 出版商: O'Reilly
  • 出版日期: 2015-07-14
  • 售價: $860
  • 貴賓價: 9.5$817
  • 語言: 英文
  • 頁數: 112
  • 裝訂: Paperback
  • ISBN: 1491927658
  • ISBN-13: 9781491927656
  • 相關分類: CSS
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

One advantage of using CSS3 is that you can apply colors and backgrounds to any element in a web document, create your own gradients, and even apply multiple backgrounds to the same element. This practical guide shows you many ways to use colors, backgrounds, and gradients to achieve some pretty awesome effects.

Short and sweet, this book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Colors, Backgrounds, and Gradients, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Learn how to bring life to your web pages now.

  • Define foreground colors for a border or element with the color property
  • Combine foreground and background colors to create interesting effects
  • Position and repeat one or more images in an element’s background
  • Fix an image to a screen’s viewing area, rather than to the element that contains it
  • Use color stops to define vertical, horizontal, and diagonal linear gradients
  • Create spotlight effects, circular shadows, and other effects with radial gradients

商品描述(中文翻譯)

使用 CSS3 的一個優勢是您可以為網頁文件中的任何元素應用顏色和背景,創建自己的漸層,甚至可以為同一元素應用多個背景。本實用指南展示了許多使用顏色、背景和漸層來實現相當驚人效果的方法。

簡短而精煉,本書摘錄自即將推出的《CSS: The Definitive Guide》第四版。當您購買《顏色、背景和漸層》的印刷版或電子書版時,您將在整本 Definitive Guide 發行後獲得折扣。為什麼要等呢?現在就學習如何為您的網頁注入活力吧。

- 使用 color 屬性為邊框或元素定義前景顏色
- 結合前景和背景顏色以創造有趣的效果
- 在元素的背景中定位和重複一個或多個圖像
- 將圖像固定在螢幕的可視區域,而不是包含它的元素上
- 使用顏色停止來定義垂直、水平和對角線的線性漸層
- 使用徑向漸層創建聚光燈效果、圓形陰影和其他效果