摘要: CSS盒模型HTML文档中可以将每个元素都看作是长方形的盒子。而CSS盒模型规定了元素框处理元素内容content、内边距padding、边框border和外边距margin的方式。下图是W3C对于盒模型的描述图。使用Firebug,可以轻松地查看到盒子的布局大小。盒子本身的大小是这样计算的:width:width + padding-left + padding-right + border-left + border-rightheight:height + padding-top + padding-bottom + border-top + border-bottom静态定位或相对定位 阅读全文
posted @ 2013-09-27 10:09 ForEvErNoMe 阅读(1669) 评论(0) 推荐(1) 编辑