【问题标题】:Problems with JQuery Galleria and IE7JQuery Galleria 和 IE7 的问题
【发布时间】:2010-06-17 16:57:46
【问题描述】:

我有一个问题,我不知道下一步该做什么。我有一个在 HTML 页面中使用 JQuery Galleeria 的网站,并在页面顶部自动播放 10 张图片。它使用的是 Classic 主题,是非常基本的功能。

我在本地 IIS 服务器和 IE7、Chrome、Opera、Firefox 的内部构建服务器上对其进行了测试,它运行良好。我将它发布在实时服务器上,它在 IE7 中间歇性中断。它做了一些奇怪的事情:

  1. 即使我在我的 JS 中放了“max_scale_ratio: 1”,它还是把图片放大了。

  2. 它在我的缩略图旁边添加了任何其他浏览器都没有的前进和后退箭头。

  3. 在第一张图片之后停止显示缩略图。

所有这些都是间歇性的,如果我多次刷新页面,它可以自行更正,或者有时会出现上述情况。

我在页面上的JS代码如下:

<script type="text/javascript">
$(document).ready(function() {
    // Load theme
    Galleria.loadTheme('themes/classic/galleria.classic.js');

    // run galleria and add some options
    $('#galleria').galleria({
        debug: true,
        image_crop: true,
        height: 397,
        max_scale_ratio: 1, //Ensures the picture crop doesn't zoom the picture
        autoplay: 8000, //Sets an autoplay interval of 8 seconds (8000)
        transition: 'fade',
        data_config: function(img) {
            return {
                description: $(img).next('p').html()
            };
        }
    });

我不知道为什么它只是在实时服务器上中断并在其他服务器上工作。我找不到任何显示相同问题的帮助来源。是服务器问题还是我可以在代码中解决的问题?

【问题讨论】:

    标签: javascript jquery internet-explorer-7 galleria


    【解决方案1】:

    似乎这是 Galleria 的一个错误(正如 Galleria 支持人员向我提及的那样),他们正在解决。这是一个IE7的问题。建议的解决方案是使用 JSON 数组,而不是直接调用图片,直到 bug 修复为止。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多