简体   繁体   English

Firefox中的基金会Joyride因未知原因引发错误

[英]Foundation Joyride throwing error for unknown reason in Firefox

So I am using Foundation for a website I am building, all is good and love using foundation, but in Firefox 28.0 on a Windows machine I am getting an error from JQuery which is related to Joyride. 因此,我正在使用Foundation建立我正在构建的网站,一切都很好,并且喜欢使用Foundation,但是在Windows计算机上的Firefox 28.0中,我从与Joyride相关的JQuery中得到了一个错误。

I am not using Joyride anywhere within the site so I really don't understand why this error is happening, and it seems to only happen in FF. 我不在网站的任何地方使用Joyride,所以我真的不明白为什么会发生此错误,而且似乎只在FF中发生。

I have attached the error in a code block, you will notice "Gotham" in there, Gotham is the custom font that I am using, but it is not referenced in any HTML anywhere, just in CSS so I don't understand where this is coming from. 我在代码块中附加了该错误,您会在其中注意到“ Gotham”,Gotham是我正在使用的自定义字体,但是任何地方都没有在HTML中引用它,只是在CSS中引用了它,所以我不知道在哪里来自。

Error: Syntax error, unrecognized expression: [data-"Gotham"-joyride]            jquery....min.js (line 2)

...turn function(b){return db(a,b).length>0}}),contains:fb(function(a){return funct...

Hope you guys can help, let me know if you need any more code or anything. 希望你们能提供帮助,如果您需要更多代码或其他任何信息,请告诉我。

Cheers, Luke. 干杯,卢克。

So after much playing around I finally found out what was causing this issue. 因此,经过大量的研究,我终于找到了导致此问题的原因。

I was using the following code: 我正在使用以下代码:

* {
  font-family: "Gotham";
}

Removing this code solved the problem. 删除此代码解决了问题。

Don't ask me how, or why because I do not know, all I can think is that because * is a global selector it was targeting something it shouldn't be and was causing this issue. 不要问我如何,或者为什么因为我不知道,我能想到的是,因为*是全局选择器,所以它针对的是不应该的东西,并且导致了这个问题。

Strange one. 奇怪

This may or may not solve the problem for others as I noticed that other people had different solutions to this issue or similar issues. 因为我注意到其他人对此问题或类似问题有不同的解决方案,所以这可能会解决其他问题,也可能无法解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM