0

我为化妆师创建了一个网站,我正在使用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
            });
        }
    });
}

...以及指向 我正在开发的网站的链接。

你有什么建议吗?

谢谢。

4

1 回答 1

0

@swenedo 我不知道你的代码有什么问题。这是绝对正确的。我在 Chrome 10、FF 4、IE 8 上对其进行了测试,没有任何问题。当我在 IE8 上打开你的网站时,我发布了一张屏幕图片,它在中间。 在此处输入图像描述

于 2011-06-29T09:06:24.457 回答