MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

翻譯不完整。請協助 翻譯此英文文件

層疊樣式表(Cascading Style Sheets, CSS), 是用來描述 HTMLXML(包含 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 開發工具

Meta 錯誤

參見

Join the Web layout community

Choose your preferred method for joining the discussion:

文件標籤與貢獻者

 最近更新: iigmir,