首页 | 本学科首页   官方微博 | 高级检索  
     

基于CSS盒子模型的margin属性解析
引用本文:殷卫莉. 基于CSS盒子模型的margin属性解析[J]. 扬州教育学院学报, 2009, 27(3): 28-31
作者姓名:殷卫莉
作者单位:扬州职业大学,江苏,扬州,225009
摘    要:以盒子模型为基础分析盒子外边距(margin)属性的特征,着重分析了盒子与盒子之间的关系和盒子之间距离的设置规则,并通过实例讨论了CSS的“塌陷”现象以及解决“塌陷”现象的方法,从而掌握应用CSS技术对网页元素进行精确定位的基本方法。

关 键 词:CSS  margin属性  盒子  div  关系

Analysis of Margin Attributes Based on CSS Box Model
YIN Wei-li. Analysis of Margin Attributes Based on CSS Box Model[J]. Journal of Yangzhou College of Education, 2009, 27(3): 28-31
Authors:YIN Wei-li
Affiliation:YIN Wei - li (Yangzhou Polytechnic College, Yangzhou 225009, China)
Abstract: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.
Keywords:CSS  div
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号