css2中的盒模型是关系到我们排版定位的关键,例如<div>就遵循盒模型规范。盒模型定义的margin,background-color,background-image,padding ,content,border,初学者经常会搞不清楚它们之间的层次、关系和相互影响。这里提供一张盒模型的3D示意图,希望便于你的理解和记忆。
seover="this.style.cursor='hand'" style="CURSOR: hand" onclick="{window.open('/up/pic/
7df3d1.gif');}" alt="" hspace=0 src="http://www.cnwebshow.com/up/pic/7df3d1.gif" onload="if(this.width>600) {this.resized=true; this.width=600;}" align=bottom border=0>
原图出自:hicksdesign
需要说明的是:IE和Mozilla浏览器对盒模型的解释不一致,造成我们定位上的困难,主要差别是: