问题描述 由于网站是web端和wap响应式的,图片的宽度和高度都需要去掉才能保证wap端不变形。因此,需要将wap中的高度和宽度去掉 /* 所有图片最大宽度为全屏显示 */ .mainContent img{ max-width:100%!important; } /* 所有图片高度去掉 */ .mainContent img[style*='height']{ height:auto!important; } 处理前后比较