所有图像的高度为 100 像素,屏幕顶部的自动宽度 - 不居中(图像高于 100 像素)。这发生在我今天升级到最新版本 2.1 时。这是最新版本中的错误吗?
使用调整大小按钮时大小似乎是正确的 - 但仍然没有垂直居中。
$("a[href*='.jpeg'], a[href*='.jpg'], a[href*='.png'], a[href*='.gif']").attr("rel", "imagegroup").fancybox({
prevEffect: 'elastic',
nextEffect: 'elastic',
helpers: {
title: null,
overlay: {
opacity: 0.8,
css: {
'background-color': '#000'
}
},
thumbs: { // remove if you do not want thumbnails at bottom
width: 50,
height: 50
},
buttons: {} // remove if you do not want buttons at top
}
});