首页 > 其他 > 详细

L6.Margin collapse Summary [to be continued]

时间:2014-06-18 14:39:29      阅读:314      评论:0      收藏:0      [点我收藏+]

1、只有块级box可以collapse;
2、floated box 的margins不会collapse;
3、overflow (而不是visible)不会同它的子元素发生collapse;
4、root element不collapse 指什么?
5、


If A‘s parent is ‘rl’:
If A‘s margins are collapsed with its parent‘s right margin, the right border edge of A is defined to be the same as the parent‘s.
Otherwise (i.e., either the element‘s parent is not taking part in the margin collapsing, or only the parent‘s left margin is involved), the position of A‘s right border edge is the same as it would have been if A had a nonzero top border。

??

L6.Margin collapse Summary [to be continued],布布扣,bubuko.com

L6.Margin collapse Summary [to be continued]

原文:http://www.cnblogs.com/guozhiguoli/p/3791466.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!