CSS: The Definitive Guide, 3/e (Paperback)
暫譯: CSS:權威指南,第3版(平裝本)

Eric A. Meyer

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

商品描述

Description

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.

 

Table of Contents

Preface

1. CSS and Documents

     The Web's Fall from Grace

     CSS to the Rescue

     Elements

     Bringing CSS and XHTML Together

2. Selectors

     Basic Rules

     Grouping

     Class and ID Selectors

     Attribute Selectors

     Using Document Structure

     Pseudo-Classes and Pseudo-Elements

3. Structure and the Cascade

     Specificity

     Inheritance

     The Cascade

4. Values and Units

     Numbers

     Percentages

     Color

     Length Units

     URLs

     CSS2 Units

5. Fonts

     Font Families

     Font Weights

     Font Size

     Styles and Variants

     Stretching and Adjusting Fonts

     The font Property

     Font Matching

6. Text Properties

     Indentation and Horizontal Alignment

     Vertical Alignment

     Word Spacing and Letter Spacing

     Text Transformation

     Text Decoration

     Text Shadows

7. Basic Visual Formatting

     Basic Boxes

     Block-Level Elements

     Inline Elements

     Altering Element Display

8. Padding, Borders, and Margins

     Basic Element Boxes

     Margins

     Borders

     Padding

9. Colors and Backgrounds

     Colors

     Foreground Colors

     Backgrounds

10. Floating and Positioning

     Floating

     Positioning

11. Table Layout

     Table Formatting

     Table Cell Borders

     Table Sizing

12. Lists and Generated Content

     Lists

     Generated Content

13. User Interface Styles

     System Fonts and Colors

     Cursors

     Outlines

14. Non-Screen Media

     Designating Medium-Specific Style Sheets

     Paged Media

     Aural Styles

A. Property Reference

B. Selector, Pseudo-Class, and Pseudo-Element Reference

C. Sample HTML 4 Style Sheet

Index

商品描述(中文翻譯)

**描述**

簡單來說,層疊樣式表(Cascading Style Sheets, CSS)是一種將文檔的結構與其呈現分開的方式。這樣做的好處相當深遠:CSS 允許文檔擁有比 HTML 更豐富的外觀,並且節省時間——您可以在一個地方創建或更改整個文檔的外觀;而且其緊湊的文件大小使得網頁加載迅速。

《CSS: The Definitive Guide》第三版為您提供了全面的 CSS 實施指南,並對 CSS 2.1 的所有方面進行了徹底的回顧。此版本已更新以涵蓋 Internet Explorer 7,這是微軟大幅改進的瀏覽器,並包含有關定位、列表和生成內容、表格佈局、用戶界面、分頁媒體等內容。作者 Eric Meyer 充滿熱情地探討這個主題,詳細介紹每個 CSS 屬性及其與其他屬性的互動。您不僅會學到如何避免常見的解釋錯誤,還會受益於他豐富的經驗以及清晰誠實的風格。這是關於 CSS 的完整參考書。

**目錄**

**前言**

**1. CSS 與文檔**
網路的失落
CSS 的救援
元素
將 CSS 與 XHTML 結合

**2. 選擇器**
基本規則
分組
類別和 ID 選擇器
屬性選擇器
使用文檔結構
偽類和偽元素

**3. 結構與層疊**
特異性
繼承
層疊

**4. 值與單位**
數字
百分比
顏色
長度單位
URL
CSS2 單位

**5. 字型**
字型系列
字型粗細
字型大小
樣式與變體
字型的拉伸與調整
font 屬性
字型匹配

**6. 文字屬性**
縮排與水平對齊
垂直對齊
單詞間距與字母間距
文字轉換
文字裝飾
文字陰影

**7. 基本視覺格式化**
基本框
區塊級元素
行內元素
改變元素顯示

**8. 內邊距、邊框與外邊距**
基本元素框
外邊距
邊框
內邊距

**9. 顏色與背景**
顏色
前景顏色
背景

**10. 浮動與定位**
浮動
定位

**11. 表格佈局**
表格格式化
表格單元格邊框
表格大小

**12. 列表與生成內容**
列表
生成內容

**13. 用戶界面樣式**
系統字型與顏色
游標
輪廓

**14. 非螢幕媒體**
指定媒體特定樣式表
分頁媒體
聲音樣式

**A. 屬性參考**
**B. 選擇器、偽類和偽元素參考**
**C. 示例 HTML 4 樣式表**
**索引**