码迷,mamicode.com
首页 > 其他好文 > 详细

L6.Margin collapse Summary [to be continued]

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

标签:art   os   io   5   而不是   c   

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]

标签:art   os   io   5   而不是   c   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!