将灯箱图像大小限制为1200

将灯箱图像大小限制为1200

问题描述:

click on "product image", you can see image ,image will expand with original size [lightbox image]

I want to restrict that lightbox image size to 1200 in product view page in magento.

please see below media.phtml file

media.phtml file = http://pastebin.com/8yaDrs8Q

help me to restrict the lightbox image size for 1200.

let me know if you need any clarifications,

thanks in advance,....

点击“产品图片”,即可看到图片,图片会以原始尺寸展开[灯箱图片] p>

我想在magento的产品视图页面中将灯箱图像大小限制为1200. p>

请参阅下面的media.phtml文件 p>

media.phtml file = http://pastebin.com/8yaDrs8Q p>

帮我限制灯箱图片大小为1200. p>

如果您需要任何说明,请告诉我。 p>

提前感谢 ,.... p> div>

Image size has been taken through css and js file not from media.phtml. You should change lightbox.js. Above given link clearly suggest you how to do it. If you don't want to make any changes than just follow below steps. Just replace your lightbox.js with LightboxXL.js and css file also.

This script has built in image resize function. Download LightboxXL.js from here-->> http://www.ramirezcobos.com/labs/lightboxxl-for-prototype/