2

I want to pop up multiple bootstrap modals on the same page to make my web application look like a desktop OS. I also use jQuery UI draggable to make modals movable.

jsFiddle

http://jsfiddle.net/F27SL/4/

This fiddle is a simpler version of what I want to implement. The problem is that when I pop up the third modal, my browser (Chrome) freezes. I have tested the fiddle with IE and FF, FF works fine but IE also freezes as Chrome.

Is it a bug of bootstrap?

4

3 回答 3

1

使用多个模式时,只需在类中添加一个“隐藏”,这在所有浏览器中都非常适合我:...

于 2013-11-30T11:25:14.767 回答
1

添加“隐藏”类作品!因此,如果堆叠两个模态:

$("#first").addClass('hide');
$("#second").removeClass('hide');
$("#second").modal('show');

作品!

于 2014-07-25T14:35:34.133 回答
1

很抱歉自己回答。

我从 GitHub 发现了一些处理这个问题的问题。

https://github.com/twitter/bootstrap/issues/5431

https://github.com/twitter/bootstrap/issues/4781

所以我找到的答案是

bootstrap 不支持多个同时模式(这是一个糟糕的 ui 选择)。谢谢!

于 2013-07-19T16:17:20.710 回答