当一个元素的高度height值设置为auto时,其背景色属性将无效

解决方法很简单,设置该元素 overflow:hidden; 即可解决问题。

猜你喜欢

转载自blog.csdn.net/qq_37816525/article/details/93470171
今日推荐