引导箱,两个模式窗口-一个在另一个窗口上 [英] Bootbox, two modal windows - one above another

查看:100
本文介绍了引导箱,两个模式窗口-一个在另一个窗口上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个引导箱模式窗口-父级和子级. 如果用户输入了错误的数据并尝试保存父模式窗口,则会出现子窗口. 问题是-当子窗口出现时,仍然可以单击父模式窗口按钮. 我该如何解决?打开子模式时,必须禁用父窗口控件.

I have two bootbox modal windows - parent and child. If user enters wrong data and try to save the parent modal window, the child window appears. The problem is - when the child window appears, it's still possible to click on the parent modal window buttons. How can I fix it? The parent window controls must be disabled when the child modal opened.

非常感谢

迈克尔

推荐答案

很好!非常感谢! 但是解决方案更简单.我更改了上述窗口的z-index. 例子: 父级窗口的z-index为1050. 我将样式添加到我的css文件中,并包含以下行: //div.bootbox.modal.fade ...是子模式窗口

Nice! Thanks a lot! But solution is more simple.. I changed the z-index of the above window. Example: z-index of the parent window is 1050. I've added style to my css file with following rows: //div.bootbox.modal.fade... is the child modal window

    div.bootbox.modal.fade.in {
         z-index:1070;
 }

//div.bootbox.modal.fade.in + div-下一个使主体褪色的div

//div.bootbox.modal.fade.in + div - is the next div that fades the body

div.bootbox.modal.fade.in + div {
     z-index:1060;
 }

非常感谢!

迈克尔

这篇关于引导箱,两个模式窗口-一个在另一个窗口上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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