摘要: 当上下相邻的两个块元素相遇时,如果上面的元素有下外边距margin-bottom 下面的元素有上外边距margin-top,则他们之间的垂直间距不是margin-bottom与margin-top之和 取两个值中的较大者这种现象被称为相邻块元素垂直外边距的合并(也称外边距塌陷)。 对于两个嵌套关系的 阅读全文
posted @ 2022-03-07 17:53 ajaXJson 阅读(139) 评论(0) 推荐(0) 编辑