你可以使用max-width或max-height来指定你希望图像的最大大小。 实时演示 参考资料 https://developer.mozilla.org/En/CSS/Max-height https://developer.mozilla.org/En/CSS/Max-width 如评论中所述,此功能不支持IE6或更低版本。