jQuery UI addClass(类,持续时间)不起作用

发布于 2024-10-09 19:12:45 字数 547 浏览 9 评论 0原文

我确信我之前已经工作过,但在 jQuery UI 1.7.2 和 1.8.7 下,似乎 addClass(class,uration) 不再工作。我什至无法让演示工作(在任何浏览器中)。

直到几分钟前我升级时我还在使用 1.7.2。我发誓我昨晚它可以工作,但今天下午它不工作,所以我认为最好先升级,然后再在这里发布。然而我没有运气让它发挥作用。

还有其他人遇到同样的问题吗?过去有人遇到过同样的问题并设法以某种方式解决它吗?

如果它对其他人有用,那么我将在这里发布我的代码,但目前我觉得没有必要这样做,因为它只会占用空间。

提前致谢。

此致,

理查德

示例已删除 - 替换为 http://jsfiddle.net/Z6mJU/。它似乎在这里工作,所以也许我没有正确设置 jQuery...我没有太多地摆弄母版页,但显然我已经删除了一些重要的东西,或者看起来是这样。我会再弄一个小提琴,看看是否能解决它。稍后会在此处发布我的进展。

I am sure I have had this working before, but under jQuery UI 1.7.2 and 1.8.7 it appears that addClass(class, duration) is no longer working. I cannot even get the demo to work either (in any browsers).

I was using 1.7.2 up until a few minutes ago, when I upgraded. I swear I had it working last night, yet this afternoon it wasn't working so thought it best to upgrade first, before posting here. However I have had no luck in getting it working.

Is anyone else experiencing the same problem? Anyone had the same problem in the past and managed to solve it somehow?

If it is working for other people then I will post my code here, but at the moment I don't feel the need to do so as it will just take up space.

Thanks in advance.

Regards,

Richard

Example removed - replaced with http://jsfiddle.net/Z6mJU/. It appears to be working here, so maybe I don't have jQuery set up correctly... I haven't fiddled with the masterpage much but apparently I have removed something vital, or so it seems. I will have another fiddle and see if I can solve it. Will post back here later with my progress.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遮云壑 2024-10-16 19:12:45

我刚刚在 jQuery 1.5.1 和 jQueryUI 1.8.12 中遇到了类似的问题。我链接了两个库,但忘记添加捆绑的样式表。添加到我的标题解决了问题。

I just had a similar issue with jQuery 1.5.1 and jQueryUI 1.8.12. I'd linked both libraries, but forgot to add in the bundled stylesheet. Adding to my header fixed the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文