首页 > 代码库 > L6.Margin collapse Summary [to be continued]
L6.Margin collapse Summary [to be continued]
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。
??
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。