gpt4 book ai didi

jquery - Colorbox - 从特定窗口中删除关闭按钮

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

我正在使用 colorbox 插件在我的网页上显示消息。其中之一是“等待响应”消息,我不希望用户自己关闭它。

我知道如何解除 ESC 键的绑定(bind),并禁用覆盖关闭,但关闭按钮仍然存在问题。我发现我可以像这样在 css 中删除它:#cboxClose{display:none !important;}但这会影响我所有的彩盒消息..

有没有办法从特定消息中删除关闭按钮?也许来自jsp本身?

谢谢,耶尔。

最佳答案

在通过 jquery 打开此特定框后删除该按钮怎么样? Colorbox 为您提供了必要的事件钩子(Hook):

$('selector').colorbox({onLoad: function() {
$('#cboxClose').remove();
}});

关于jquery - Colorbox - 从特定窗口中删除关闭按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2685282/

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