Angular UI modal directive, backdrop missing

前端 未结 5 2106
梦谈多话
梦谈多话 2021-02-15 01:47

I have no backdrop when using the modal directive from UI Bootstrap http://angular-ui.github.io/bootstrap/. The modal itself is working.

I have tried with both the ui-b

5条回答
  •  爱一瞬间的悲伤
    2021-02-15 02:18

    Sadly, the answer, where bottom:0; is specified is not entirely correct - in some cases it happens (and that's especially true for ui-view router), that there is some empty space left below the backdrop. So, I would suggest just adding the following code:

    .modal-backdrop {
        bottom: -100%;
    }
    

    As the backdrop is added to the body level, it should not break anything and is absolutely guaranteed not to leave any uncovered space below the backdrop.

提交回复
热议问题