终于发现只要设置img为 height:auto,width:auto,就不会出现这种情况了 img { height: auto; width: auto; } 转载于:https://www.cnblogs.com/dehuachenyunfei/p/11139795.html