兼容ie、firefox的图片自动缩放的css跟js代码分享 需求:图片width<=330px,height<=150。 1、利用max-width,max-height使图片等比例自动缩放,代码: 复制代码 JavaScript 2022-04-09 98 点赞 1 评论 148 浏览