我正在使用FancyBox v3.2.10,并且首次打开时,脚本会将图像的大小调整为其大小的许多倍。
<script type="text/javascript">
$(function(){
$('[data-fancybox="artistpics"]').fancybox({
autoScale: true,
protect: true,
animationEffect : "zoom",
animationDuration : 300,
transitionEffect : "slide",
loop: true,
margin : [44,0,22,0],
thumbs : {
autoStart : true,
axis : 'y',
}
});
});
</script>
画廊divs是
<div class="dashboard-banner-images">
<a data-fancybox="artistpics" href="/assets/uploads/elvisavatar_428857324.jpg">
<img src="/assets/uploads/elvisavatar_428857324.jpg">
</a>
<a data-fancybox="artistpics" href="/assets/uploads/elvismain_852894529.jpg"><img src="/assets/uploads/elvismain_852894529.jpg">
</a>
</div>
可能是什么问题?