(不包括 float 和 absolute元素) 不考虑 wirte-mode(就是书写格式) 只发生在 垂直方向(margin-top margin-bottom) B) 发生的情况 1> 相邻的兄弟元素 2> 父级的第一个 和 最后一个子元素 3> 空的 block。
基于8个网页-相关网页
Notice how the top margin of the second paragraph is extended vertically to meet the bottom margin of the previous paragraph.
请注意第二个段落的上边框是如何垂直扩展以便与前一段落的底边框相接的。
On the vertical dimension, we distribute extra space in a ratio of (1, 4, 2) corresponding to (top margin, button itself, bottom margin).
在垂直方向上,按照与(上边距,按钮本身,下边距)对应的(1,4,2)的比例分配额外空间。
Left - Increase the generated box's top margin so that the top border edge is below the bottom margin edge of any left float boxes generated from previous source elements.
left -增加所生成框的上边框,以便上border edge处于由之前的源元素所生成的任一左浮动框的底margin edge之下。
应用推荐