Jquery动画在ie8中冻结 [英] Jquery animations freeze in ie8

查看:112
本文介绍了Jquery动画在ie8中冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些JQueryUI动画加上一些Jquery代码,它们将一些html加入到页面中。 html是基于来自JQuery Ajax调用的数据生成的。

I have some JQueryUI animation coupled with some Jquery code that addes some html to the page. The html is generated based on data from a JQuery Ajax call.

我认为我的动画冻结可能来自Ajax调用,但是从下面的问题说的是我不这么认为:

I thought the freezing of my animations might be from the Ajax call, but from what the question below is saying i'm thinking not:

为什么我的微调器GIF在jQuery ajax调用运行时停止?

我认为问题我我可能有相同的来源,但上述问题提供了行为的原因,而不是解决方案。

I think the issue I am having may be of the same origin, however the question above provides a REASON for the behavior, not a SOLUTION.

有没有人有解决方案?

推荐答案

所以我认为这个问题有三个主要的解决方案;他们是更多的解决方法。

So I think that there are 3 main "solutions" to this problem; well they are more workarounds.


  1. 您可以删除隐藏动画。使用.hide()然后在节目中使用一些动画。

  2. 您可以使用隐藏动画的回调方法然后插入html并显示新div

  3. 您可以使用其他浏览器。我只在ie8 / firefox / chrome上测试过;但在这种情况下,我会建议使用铬,因为它能够做到这一点非常棒。虽然我通常也建议使用firefox,但是在这种情况下,这种情况并不比ie8更好。

当然我猜测有第四个解决方案,就是处理它。

And of course I guess there is a fourth solution, which is to just deal with it.

这篇关于Jquery动画在ie8中冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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