解决方法: 1.在父元素上加:overflow:hidden. 2.给父元素加border; 3.外容器上加上padding 转载于:https://www.cnblogs.com/YDshuaizai/p/5896671.html