CSS Basic Box Model Module

尺寸与补白 Dimension

属性 版本 继承性 描述
width CSS1 定义了元素内容区(Content Area)的宽度
min-width CSS2 定义了元素内容区(Content Area)的最小宽度
max-width CSS2 定义了元素内容区(Content Area)的最大宽度
height CSS1 定义了元素内容区(Content Area)的高度
min-height CSS2 定义了元素内容区(Content Area)的最小高度
max-height CSS2 定义了元素内容区(Content Area)的最大高度
margin CSS1 为元素设置所有四个方向(上右下左)的外边距
padding CSS1 为元素设置所有四个方向(上右下左)的内边距,即内容和元素边界之间的空间