【问题标题】:Lightbox 2 in internet explorer 9Internet Explorer 9 中的灯箱 2
【发布时间】:2013-05-27 14:09:54
【问题描述】:

我对灯箱 2 有疑问。 由于某种原因,当我在 Internet Explorer 9 中打开它时,它在我的网站上不起作用。 当您单击图片时,覆盖是灰色的,您无法关闭或导航。 该网站已在线,因此您可以看到问题:one of my test albums。 它必须在 ie9 上运行的原因是因为我们需要在学校展示它,而那里唯一的浏览器是 ie9,所以如果它不起作用,人们将无法对其进行测试。 提前致谢。

【问题讨论】:

  • 看起来你缺少一些)。请检查您的控制台是否有错误并首先修复它们。

标签: jquery lightbox


【解决方案1】:

我有 IE 8,所以我无法复制您的问题,但是当我打开您的网站时,我发现了 2 个错误。

1)。支架未正确关闭。这是更正后的代码

jQuery(document).ready(function ($) {
     //ipad and iphone fix
     if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
        $(".drop li ul").click(function(){
      });
     }
    }); // added 

2)。语法错误

Error: SyntaxError: function statement requires a name
Source File: http://tintopix.com/js/lightbox.js
Line: 351, Column: 25
Source Code:
updateImageList: function() { 

我认为灯箱的第二个错误由于第一个错误而无法正常工作,因此请更正第一个错误然后检查。我认为它会起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-06-06
    • 2011-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-02
    • 1970-01-01
    相关资源
    最近更新 更多