将我上传到webhost后,Fancybox框无效,但可以在localhost上使用 [英] Fancybox box isn't working after I upload it to webhost but works on localhost

查看:130
本文介绍了将我上传到webhost后,Fancybox框无效,但可以在localhost上使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.outofthegardendesigns.com

有什么想法?

我认为它与路径有关但我不确定我做错了什么。

I think it has something to do with the pathing but I'm not sure what I'm doing wrong.

推荐答案

您正在多次添加jQuery。

You are adding jQuery multiple times.

此网址的两次 js / libs / jquery-1.7.1.js 然后再次使用google cdn,如果google cdn处于离线状态,则再次回退。我想,这是造成冲突的原因。因为,在你的本地主机上,你可能处于离线状态,google cdn jQuery没有加载,一切正常。但是当你在服务器中打开它时,google cdn jQuery会尝试加载并花费时间并抛出错误。

Two times from this url js/libs/jquery-1.7.1.js and then again with google cdn and again a fallback if google cdn is offline. I guess, this is causing conflict. Since, on your localhost you may be offline, google cdn jQuery is not loading and everything is working fine. But when you open it in server, google cdn jQuery tries to load and takes time and throws an error.

这篇关于将我上传到webhost后,Fancybox框无效,但可以在localhost上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆