摘要
以盒子模型为基础分析盒子外边距(margin)属性的特征,着重分析了盒子与盒子之间的关系和盒子之间距离的设置规则,并通过实例讨论了CSS的"塌陷"现象以及解决"塌陷"现象的方法,从而掌握应用CSS技术对网页元素进行精确定位的基本方法。
Based on box model, this paper analyses the characteristics of margin attributes from outside the box, in particular, the relationship between boxes and the rules setting the distance between boxes. Besides, it discusses the "collapsing margins" phenomenon of CSS through practical examples and its solutions, thus mastering the basic ways to position webpage elements by applying CSS technology.
出处
《扬州教育学院学报》
2009年第3期28-31,共4页
Journal of Yangzhou College of Education
作者简介
殷卫莉(1957-),女,扬州职业大学信息工程学院实验师。