Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用灯箱幻灯片,灯箱的宽度和高度根据图像的宽度和高度而变化,我想固定灯箱的宽度和高度,使其不应该改变,请建议。
通过 JQuery,您可以按照以下格式修复此问题,
$('.YOURCLASS').lightBox({ maxHeight: SETMAXHEIGHT, maxWidth: SETMAXWIDTH });