相關主題
商品描述
The ability to apply margins, borders, and padding to any web page element is one of the things that sets CSS so far above traditional markup. With this practical guide, you will not only learn how to use these properties to lay out your document, but also how to change and control the appearance of any element on the page.
Short and sweet, this short 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 Padding, Borders, Outlines, and Margins in CSS, 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.
- Understand the CSS box model, including the way different properties relate to one another
- Use tricks for defining padding values, including inline element padding
- Explore border width, style, and color, plus the use of border images
- Learn how to use outlines: presentational elements that won’t affect layout
- Dive into the use of margins, including the way top and bottom margins collapse
商品描述(中文翻譯)
能夠為任何網頁元素應用邊距(margins)、邊框(borders)和內距(padding)是 CSS 相較於傳統標記語言的一大優勢。在這本實用指南中,您不僅會學習如何使用這些屬性來佈局您的文檔,還會學習如何更改和控制頁面上任何元素的外觀。
這本簡短而精煉的書籍是即將出版的《CSS: The Definitive Guide》第四版的摘錄。當您購買《Padding, Borders, Outlines, and Margins in CSS》的印刷版或電子書版時,您將在《Definitive Guide》發布後獲得整本書的折扣。為什麼要等呢?現在就學習如何為您的網頁注入活力吧。
- 了解 CSS 盒模型,包括不同屬性之間的關係
- 使用定義內距值的技巧,包括行內元素的內距
- 探索邊框的寬度、樣式和顏色,以及邊框圖像的使用
- 學習如何使用外框:不會影響佈局的呈現元素
- 深入了解邊距的使用,包括上下邊距的合併方式