jquery插件'blockUI'不会在Firefox中灰屏 [英] jquery plugin 'blockUI' doesn't gray out screen in firefox

查看:273
本文介绍了jquery插件'blockUI'不会在Firefox中灰屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在执行ajax操作时使用blockUI来阻止我的web应用程序的界面,但屏幕拒绝在firefox中灰显(尽管消息框显示)。我终于明白,除了调用jquery的fadeIn或show之外,一切正常。

blockUI从显式声明样式为display:none;的元素开始。并调用jquery的fadeIn()或show()函数来显示它们。有没有什么我在jquery或blockUI,可以解释这种行为缺少?

编辑:我刚刚发现,在Firefox的代码工程查找;我遇到的问题是在Ubuntu上。我不知道它是否会影响OS X. 解决方案

解决方案根据插件常见问题 为什么我在Linux上看不到FF的覆盖?

几个人告诉我FF / Linux中整页不透明渲染的速度非常慢,所以在默认情况下,该平台是禁用的。您可以通过覆盖 applyPlatformOpacityRules 属性来启用它:

  / /在FF / Linux上启用透明叠加
$ .blockUI.defaults.applyPlatformOpacityRules = false;


I'm attempting to use blockUI to block the interface of my web app while performing an ajax operation, but the screen was refusing to gray out for me in firefox (although the message box does show up). I finally figured out that everything was working except the calls to jquery's fadeIn or show.

blockUI starts with elements that have explicitly declared styles of "display: none;" and calls jquery's "fadeIn()" or "show()" functions do display them. Is there anything I'm missing in either jquery or blockUI that would explain this behavior?

Edit: I just discovered that the code works find in Windows Firefox; the issue I am having is on Ubuntu. I do not know whether it affects OS X or not.

解决方案

Solution according to the plugin's FAQ

Why don't I see overlays in FF on Linux?

Several people informed me that full page opacity rendering in FF/Linux is crazy slow, so by default it's disabled for that platform. You can enable it by overriding the applyPlatformOpacityRules property like this:

// enable transparent overlay on FF/Linux 
$.blockUI.defaults.applyPlatformOpacityRules = false;

这篇关于jquery插件'blockUI'不会在Firefox中灰屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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