JQuery UI 模态对话框使用 100% CPU [英] JQuery UI modal dialog uses 100% CPU
本文介绍了JQuery UI 模态对话框使用 100% CPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在 IE8 中打开一个模态 JQuery 对话框时,我的 CPU 使用率达到 100%(不,实际上是 50,但这是一个核心的 100%).如果我破坏了开发人员工具,似乎会触发很多调整大小事件(我不做任何自愿调整大小).有其他人遇到过这个问题并知道如何解决吗?
When I have a modal JQuery dialog open in IE8, my CPU usage goes to 100% (no, actually 50, but that's 100% of one core). If I break developer tools, it seems that it's a lot of resize events firing (I don't do any volontary resizing). Has someone else encountered this issue and knows how to fix it?
推荐答案
解决方案是将这个添加到你的 CSS 文件中:
The solution is to add this to your CSS file:
.ui-widget-overlay {
position: fixed;
}
这篇关于JQuery UI 模态对话框使用 100% CPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文