Galleria在所有浏览器本地工作,但只有IE8和& Chrome托管时 [英] Galleria works locally in all browsers but only IE8 & Chrome when hosted

查看:194
本文介绍了Galleria在所有浏览器本地工作,但只有IE8和& Chrome托管时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此页:
http://www.ipjnet.talktalk.net /code/photos.html
适用于Opera11,Chrome,Firefox3和IE8本地。

This page: http://www.ipjnet.talktalk.net/code/photos.html works in Opera11,Chrome, Firefox3 & IE8 locally.

托管的同一页面只能在IE8& Chrome

The same page hosted only loads correctly in IE8 & Chrome

我是galleria和jquery的新手,所以请温柔地对待我,因为我觉得我必须错过一些非常明显的东西。

I'm new to galleria and jquery so please be gentle with me as I think I must be missing something very obvious.

非常感谢

推荐答案

脚本文件中的斜杠是错误的......

The slashes in your script files are the wrong ones...

<script src="galleria\src\jquery-1.4.4.js"></script>
<script src="galleria\src\galleria.js"></script>

应为:

<script src="galleria/src/jquery-1.4.4.js"></script>
<script src="galleria/src/galleria.js"></script>

本地机器上的IE(并以Quirks模式托管)让你逃脱这个。但是在Web上,路径分隔符只是正斜杠。

IE on the "local" machine, (and hosted in Quirks mode) let you get away with this. However on the "Web" the path delimiters are forward slashes only.

由于错误的斜杠,jQuery和Galleria在Firefox中根本不加载/ (其他浏览器)

As a result of the wrong slashes, jQuery and the Galleria don't load at all in Firefox/(other browsers)

这篇关于Galleria在所有浏览器本地工作,但只有IE8和&amp; Chrome托管时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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