Lightbox2无法在Internet Explorer 11上运行

时间:2015-07-05 05:42:18

标签: lightbox2

我无法让Lightbox 2在Internet Explorer上运行,但在Chrome和Firefox上运行良好。我已经阅读了在线解决方案,所以认为可能是因为我使用的是旧版本,因此请设置一个测试页面,其中包含最新版本,并按照指示链接到lightbox-plus-jquery.js而不是lightbox.js,但仍然没有不工作这是测试页面www.graffitisolutions.co.nz/test。如果有人能帮我解决这个问题,我将非常感激。

1 个答案:

答案 0 :(得分:0)

您的页面在头部使用元标记切换到Internet Explorer 8兼容模式:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

Lightbox2脚本 支持Internet Explorer 8,但jQuery 2.x 不支持。 lightbox-plus-jquery.js文件包含jQuery v2.x并支持IE 9+。如果你想要IE8支持并使用lightbox.js,你可以从jQuery主页获取jQuery 1.x. Lightbox浏览器支持的详细信息: http://lokeshdhakar.com/projects/lightbox2/#browser-support

旁注:您链接的页面在尝试加载prototype.js和scriptaculous.js时显示错误。还有许多HTML验证错误值得研究:https://validator.w3.org/check?uri=http%3A%2F%2Fwww.graffitisolutions.co.nz%2Ftest%2F&charset=%28detect+automatically%29&doctype=Inline&group=0