gpt4 book ai didi

jquery - 在页面Jquery上制作透明叠加

转载 作者:行者123 更新时间:2023-12-03 22:37:40 25 4
gpt4 key购买 nike

嘿,我怎样才能做到基本上只有半透明的颜色覆盖整个页面,除了 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.

关于jquery - 在页面Jquery上制作透明叠加,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3200361/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com