jQuery BlockUI元素阻止showOverlay:false [英] jQuery BlockUI Element Blocking showOverlay: false

查看:259
本文介绍了jQuery BlockUI元素阻止showOverlay:false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JQuery BLOCKUI进行元素阻塞

I am using JQuery BLOCKUI for Element Blocking

但是它是showOverlay:false选项在任何情况下都不起作用?

but it's showOverlay: false option is not working any idea ??

$("#MessageMOCKUP").block({ css: {
    border: 'none',
    padding: '15px',
    showOverlay: false,
    backgroundColor: '#000',
    '-webkit-border-radius': '10px',
    '-moz-border-radius': '10px',
    opacity: .5,
    color: '#fff'
}
});

推荐答案

来自 jQuery的选项文档blockUI ,css选项中不包含showOverlay选项. css 仅适用于用于阻止的邮件.如果您需要访问添加的叠加层的CSS,则 overlayCSS 包含这些样式.您可以修改叠加层的不透明度和颜色,使其看起来好像不存在一样.

From the options documentation of the jQuery blockUI , the showOverlay option is not included in the css option. css is only for the message that is used for blocking. If you need to access the css of the overlay that is added then overlayCSS contains those styles. You could modify the opacity and color of the overlay to make it appear as if it is not present.

如果您使用css块之外的代码(如下所示),则不会添加添加到元素顶部的叠加层.

If you use if outside the css block like the following then the overlay that is added on top of the element does not get added.

$("your_selector").block({            
    showOverlay: false
});

让我知道是否需要更多信息.

Let me know if you need more information.

这篇关于jQuery BlockUI元素阻止showOverlay:false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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