css边距重叠是什么
📷
1、边界重叠是指两个或两个以上盒子的相邻边界重合在一起,构成单一边界。
可以相邻也可以嵌套,其中没有非空内容、补白、边框。
.neighbor{
height: 100px;
background: red;
}
.father{
background: #f436365e;
}
.child{
height: 100px;
margin-top: 10px;
background: #00800047;
}
领取专属 10元无门槛券
手把手带您无忧上云