jQuery BlockUI Element Blocking showOverlay: false

巧了我就是萌 提交于 2019-12-21 06:58:33

问题


I am using JQuery BLOCKUI for Element Blocking

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'
}
});

回答1:


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.

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.



来源:https://stackoverflow.com/questions/5910212/jquery-blockui-element-blocking-showoverlay-false

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!