JQuery UI模式对话框使用100%CPU [英] JQuery UI modal dialog uses 100% CPU

查看:124
本文介绍了JQuery UI模式对话框使用100%CPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IE8中打开模态JQuery对话框时,我的CPU使用率达到100%(不,实际上是50,但这是一个核心的100%)。如果我打破开发人员工具,似乎很多调整大小的事件(我没有做任何volontary调整大小)。是否有其他人遇到此问题并知道如何修复它?

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屋!

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