简体   繁体   English

Fancybox没有关闭

[英]Fancybox doesn't close

I'm getting an error on my website. 我的网站上出现错误。 When I try to close a frame of Fancybox plugin, it doens't close all. 当我尝试关闭Fancybox插件框架时,它并没有全部关闭。 The screen is still locked. 屏幕仍处于锁定状态。

On console debugging I can see this error Object doesn't support property or method 'swing' , in this line: this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration) 在控制台调试中,我可以在以下行中看到此错误Object doesn't support property or method 'swing'this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration)

To see it online, click on some music link on http://www.justmp3.cn/baixar/david-guetta/ 要在线观看,请点击http://www.justmp3.cn/baixar/david-guetta/上的一些音乐链接

If someone has idea what should I do to solve my problem, I would thank too much! 如果有人知道我该怎么做才能解决我的问题,我将非常感谢!

There is a problem with your easing plugin. 您的宽松插件存在问题。 try to get it from here and include 尝试从这里获取并包括

To use "swing" effect it needs the easing plugin and you didn't add it so you should include 要使用“摇摆”效果,它需要使用缓动插件,并且您没有添加它,因此应包括

<script type="text/javascript" src="http://your_domain/fancybox/jquery.easing-1.4.pack.js"></script>

Optional - Add transitions as jQuery by default supports only "swing" and "linear" 可选-默认情况下,作为jQuery添加过渡,仅支持“摇摆”和“线性”

Reference: fancybox . 参考: fancybox

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

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