【发布时间】:2014-10-03 11:35:41
【问题描述】:
我正在使用 Galleria (http://galleria.io/) 并动态生成图片到画廊,偶尔会出现画廊只包含一张图片的情况,此时我希望画廊在没有缩略图的情况下出现容器,我该怎么做?
非常感谢任何帮助!
我当前的初始化脚本是:
Galleria.loadTheme('assets/js/galleria.classic.min.js');
// Initialize Galleria
Galleria.run('#galleria', {
show: selectedIndex,
showInfo: false,
swipe: true,
imageCrop: false,
responsive:true,
showCounter:true,
thumbnails:true,
lightbox: true,
trueFullscreen:true,
extend: function() {
this.bind(Galleria.IMAGE, function() {
$('#description').html(this.$('info-title').html());
$('.galleria-lightbox-title').html(this.$('info-title').html());
})
}
});
【问题讨论】:
标签: javascript jquery galleria