为什么我的 jQuery 插件没有在 webkit 浏览器中加载?

发布于 2024-09-26 16:50:54 字数 310 浏览 1 评论 0原文

我正在使用 Galleria 插件。它在 Firefox 和 IE 7/8 中完美运行,但在 Chrome/Safari 中完全失败。 JavaScript 甚至没有启动,您可以通过以下事实看出它没有像通常那样用额外的 #galleria-container div 包围 #gallery div。实际上没有任何反应,我检查了资源跟踪,所有脚本都已加载(显然也是因为它在 IE/FF 中工作)

http://bit.ly/9GvxPj

任何帮助将不胜感激;我快要疯了。

I'm using the Galleria plug-in. It works perfectly in Firefox and IE 7/8 but just completely fails in Chrome/Safari. The JavaScript doesn't even kick in, you can tell by the fact that it's not surrounded the #gallery div with the extra #galleria-container divs like it normally does. Literally nothing happens, I've checked the resource tracking, all the scripts are getting loaded in (obviously as well because it's working in IE/FF)

http://bit.ly/9GvxPj

Any help would be massively appreciated; I'm about to go insane.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆之渊 2024-10-03 16:50:54

如果我不得不猜测,这可能会导致问题:

<link href="js/classic/galleria.classic.js" rel="stylesheet" type="text/css" media="all"/> 

很难调试,因为我无法控制页面,但 Webkit 可能会以某种奇怪的方式将您包含为 CSS 的 JavaScript 解释...我老实说不确定在这种情况下的行为是什么。

If I had to guess, this might be causing issues:

<link href="js/classic/galleria.classic.js" rel="stylesheet" type="text/css" media="all"/> 

It's hard to debug because I don't have control of the page, but Webkit may interpret that JavaScript you're including as CSS in some weird ways...I'm honestly not sure what the behavior is in that case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文