在页面Jquery上创建透明覆盖

前端之家收集整理的这篇文章主要介绍了在页面Jquery上创建透明覆盖前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
嘿,我怎么能这样做,以便基本上只有一个半透明的颜色覆盖整个页面,除了1 div(这将是一条消息)

基本上,页面加载背景被半透明黑度覆盖,但某个div(在这种情况下为消息框)保持正常.

谢谢

解决方法

你可以试试blockUI http://malsup.com/jquery/block/

The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX,without locking the browser[1]. When activated,it will prevent user activity with the page (or part of the page) until it is deactivated. BlockUI adds elements to the DOM to give it both the appearance and behavior of blocking user interaction…

[1] Using the XMLHttpRequest object in synchronous mode causes the entire browser to lock until the remote call completes. This is usually not a desirable behavior.

原文链接:https://www.f2er.com/jquery/177367.html

猜你在找的jQuery相关文章