翻譯不完整。請協助 翻譯此英文文件。
層疊樣式表(Cascading Style Sheets, CSS), 是用來描述 HTML 或 XML(包含 SVG 或 XHTML 等各種 XML 變形)文件外觀的樣式表語言。CSS 會描述文件裡的結構化元素,該如何呈現在螢幕、紙、語音報讀、或其他媒介上。
CSS 是開放網路的核心語言之一,具有標準化的 W3C 規範。歷經不同層級的開發,CSS1 目前已被棄用、CSS2.1 是建議規範,而 CSS3 目前被分作數個較小的模組,持續在標準化的路上行進。
- CSS 參考
這是給經驗豐富的網頁開發者的完整參考資訊,說明 CSS 的每一個屬性與概念。
- CSS 教學
我們的 CSS 學習專區包含所有必要的基礎資訊,能讓你從完全新手開始,帶向熟悉 CSS。
- CSS 介紹
若你剛接觸網路開發,請確定自己讀過我們的 CSS 基礎 以了解何謂 CSS 並知道要怎麼用。
教學
我們的 CSS 學習專區有很多從頭教起的 CSS 模組。你不需要背景知識。
- CSS 介紹
- 此模組讓你理解 CSS 工作原理,包含選擇器與屬性、撰寫 CSS 規則、在 HTML 套用 CSS、如何在 CSS 指定長度、色彩、還有其它單位、階層與繼承、box model 基礎、以及針對 CSS 除錯。
- 樣式化文字
- Here we look at text styling fundamentals, including setting font, boldness, and italics, line and letter spacing, and drop shadows and other text features. We round off the module by looking at applying custom fonts to your page, and styling lists and links.
- Styling boxes
- Next up, we look at styling boxes, one of the fundamental steps towards laying out a web page. In this module we recap the box model then look at controlling box layouts by setting padding, borders and margins, setting custom background colors, images and other features, and fancy features such drop shadows and filters on boxes.
- CSS layout
- At this point we've already looked at CSS fundamentals, how to style text, and how to style and manipulate the boxes that your content sits inside. Now it's time to look at how to place your boxes in the right place in relation to the viewport, and one another. We have covered the necessary prerequisites so can now dive deep into CSS layout, looking at different display settings, traditional layout methods involving float and positioning, and new fangled layout tools like flexbox.
參考
- CSS 參考: An exhaustive reference for seasoned Web developers describing every property and concept of CSS.
- CSS key concepts:
- The syntax and forms of the language
- Specificity and inheritance
- Box model and margin collapse
- Stacking and block-formatting contexts
- Initial, computed, used, and actual values
- CSS shorthand properties
- CSS Flexible Box Layout
- CSS 格線配置
CSS 開發工具
- The W3C CSS 驗證服務 能檢查 CSS 的有效性。OnlineWebCheck.com 也在做相同的事情。它們都是很重要的除錯工具。
- Firefox 開發者工具能透過頁面檢測器與樣式編輯器直接觀察、編輯網頁的 CSS。
- Firefox 的Firebug 套件,navigator 裡面,能直接觀察、編輯網頁的 CSS 的人氣套件。要測試某些變化的時候會非常實用,而這套件還能做得更多。
- Firefox 的Web Developer 套件 也能能直接觀察、編輯網頁的 CSS。與 Firebug 相比更簡單、但相比下也沒那麼強大。
- 其他 CSS 工具。
Meta 錯誤
- Firefox: bug 1323667
參見
- CSS demos最新的 CSS 技術動向:給予創意的一拔。
- 常與 CSS 相關聯的語言:HTML、SVG、XHTML、XML。
- 廣泛運用 CSS 的 Mozilla 科技:XUL、Firefox及Thunderbird的套件與佈景
Join the Web layout community
- Stack Overflow: CSS topics
- CSS-Discuss: CSS-Discuss mailing list
文件標籤與貢獻者
最近更新:
iigmir,

