gpt4 book ai didi

javascript - ElevateZoom 默认缩放级别

转载 作者:行者123 更新时间:2023-11-29 15:21:46 25 4
gpt4 key购买 nike

我找不到如何更改 elevateZoom 的默认缩放级别,有什么建议吗?这是我的代码:

$('.img-zoom').elevateZoom({
responsive: true,
zoomWindowWidth:500,
zoomWindowHeight:300,
zoomWindowFadeIn: 500,
zoomWindowFadeOut: 750,
scrollZoom : true
});

最佳答案

出于某种原因,zoomLevel 示例隐藏在 elevateZoom 的 example page 中, 但如果你使用开发工具,你可以删除 display: none 并找到以下信息:

Zoom Level
The zoomlevel by default is 1, but this can be overridden
You can do this with the zoomLevel config option
Zoom Level 2 would make the image twice as small
Zoom Level 0.5 would make the image twice as big

$("#zoom_11").elevateZoom({
zoomLevel: 2
});

关于javascript - ElevateZoom 默认缩放级别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43477131/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com