我为化妆师创建了一个网站,我正在使用Galleria来制作作品集。我对 IE8 中的 imagePosition 属性有疑问。即使我使用imagePosition: 'center',图像在 IE8 中位于左侧。(其他浏览器将图像居中)
这是代码:
function initGalleria(){
$('#galleria').galleria({
debug:true,
imageCrop:'height',
imagePan:true,
imagePanSmoothness:10,
imagePosition:'center',
transition:'fade',
transitionSpeed:500,
idleTime:1000,
queue:false,
extend: function() {
this.attachKeyboard({
left: this.prev, // applies the native prev() function
right: this.next
});
this.addIdleState(this.get('thumbnails-container'), {
opacity: 0
});
this.addIdleState(this.get('info-link'), {
opacity: 0
});
}
});
}
...以及指向 我正在开发的网站的链接。
你有什么建议吗?
谢谢。