外边距塌陷问题---只设置一个外边距

避免:  优先padding

解决:

1、父盒子内边距1px

2、父盒子设置边框 1px

3、overflow:hidden(BFC)

猜你喜欢

转载自blog.csdn.net/weixin_42223833/article/details/87911262