1
我想在另一個模型上使用ng-bootstrap打開模態。模型如預期那樣開放,但第二個模型的模態背景是在第一個模型背後。 Angular 2 ng-bootstrap打開多個模型
型號有document開業。沒有什麼特別的。
我想在另一個模型上使用ng-bootstrap打開模態。模型如預期那樣開放,但第二個模型的模態背景是在第一個模型背後。 Angular 2 ng-bootstrap打開多個模型
型號有document開業。沒有什麼特別的。
我設法得到這項工作,只是通過添加以下的CSS代碼。
.modal:nth-of-type(2) {
z-index: 1051 !important;
}
.modal-backdrop:nth-of-type(2) {
z-index: 1050 !important;
}
.modal:nth-of-type(3) {
z-index: 1052 !important;
}
.modal-backdrop:nth-of-type(3) {
z-index: 1051 !important;
}
我想打開3個嵌套模型。這就是爲什麼我添加了第n種類型(2)和第n種類型(3)