为什么我的 jQuery 插件没有在 webkit 浏览器中加载?
我正在使用 Galleria 插件。它在 Firefox 和 IE 7/8 中完美运行,但在 Chrome/Safari 中完全失败。 JavaScript 甚至没有启动,您可以通过以下事实看出它没有像通常那样用额外的 #galleria-container div 包围 #gallery div。实际上没有任何反应,我检查了资源跟踪,所有脚本都已加载(显然也是因为它在 IE/FF 中工作)
任何帮助将不胜感激;我快要疯了。
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)
Any help would be massively appreciated; I'm about to go insane.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我不得不猜测,这可能会导致问题:
很难调试,因为我无法控制页面,但 Webkit 可能会以某种奇怪的方式将您包含为 CSS 的 JavaScript 解释...我老实说不确定在这种情况下的行为是什么。
If I had to guess, this might be causing issues:
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.