Fancybox安装后出现问题
我正在使用 Fancybox v4 并根据安装指南设置了 css 和 js,但我的图像仍然打开,就像不存在 Fancybox 一样。
我对这些事情不是专家,所以我希望有人可以帮助我:-)
我正在工作的网站位于 https://new.bigbox8700.dk/ 这是“PRAKTISK INFORMATION”部分中的图像。
问候 托马斯
I'm using Fancybox v4 and have setup the css and js according to installation guide, but still my image opens as if no Fancybox is present.
I'm no wiz on these things, so I hope someone can help me out :-)
The site I'm working on is locates at https://new.bigbox8700.dk/
It's the image in the "PRAKTISK INFORMATION" section.
Regards
Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番调试后,我发现您的 JavaScript 文件
js-18a51-27218.js
包含 Mootools v1.4.5(10 年前发布!),不幸的是,Mootools 更改了全局对象,从而破坏了 Fancybox。令人惊奇的是,您在新项目中同时使用了 10 年前的 Mootools 和 6 年前的 jQuery。由于MooTools导致了这个问题并且已经6年没有更新了,建议您将其删除。
After some debugging I found out that your JavaScript file
js-18a51-27218.js
contains Mootools v1.4.5 (released 10 years ago!) and, unfortunately, Mootools changes global objects and that breaks Fancybox. It's amazing that you're using 10-year-old Mootools and 6-year-old jQuery at the same time on the new project.Since MooTools is causing this problem and has not been updated for 6 years, it is recommended that you remove it.