如何将非常大的图像调整到给定的设置,例如图像是 2660x2000 的东西,那么如何将其调整到 1024x960?我尝试了所有可能的帮助,但无法得到我想要的。
最佳答案
只需在您的 CSS 中写入:
(img selector) {
max-width: 1024px;
height: auto; /*Height is auto the image to be re-sized proportionally */
}
关于JQuery 颜色框 : Resize very large image to given size,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19753116/