在Jquery中有大小调整的答案
代码中有:
var maxWidth = 100; // Max width for the image
var maxHeight = 100; // Max height for the image
是否可以将大小调整为100px x 100px的固定大小?
或者您可以使用CSS作为background-image
而background-size: cover; background-position: center center;