关于 css box model 的介绍,参见 w3c school
[url]http://www.w3schools.com/css/css_boxmodel.asp[/url]
[img]http://www.w3schools.com/css/box-model.gif[/img]
* Margin - Clears an area around the border. The margin does not have a background color, and it is completely transparent
* Border - A border that lies around the padding and content. The border is affected by the background color of the box
* Padding - Clears an area around the content. The padding is affected by the background color of the box
* Content - The content of the box, where text and images appear
[url]http://www.w3schools.com/css/css_boxmodel.asp[/url]
[img]http://www.w3schools.com/css/box-model.gif[/img]
* Margin - Clears an area around the border. The margin does not have a background color, and it is completely transparent
* Border - A border that lies around the padding and content. The border is affected by the background color of the box
* Padding - Clears an area around the content. The padding is affected by the background color of the box
* Content - The content of the box, where text and images appear
CSS盒模型详解
本文详细介绍了CSS盒模型的四个组成部分:Margin、Border、Padding及Content。Margin为边界区域,不包含背景颜色且完全透明;Border为围绕填充和内容的边框,受盒子背景颜色的影响;Padding为内容周围的空白区域,同样受背景颜色影响;Content则为盒子的实际内容所在区域。
562

被折叠的 条评论
为什么被折叠?



