Angular UI modal directive, backdrop missing

前端 未结 5 2127
梦谈多话
梦谈多话 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:07

    from Maxisam's link to the pull request: https://github.com/angular-ui/bootstrap/pull/3117

    the easiest fix is simply to add the following CSS:

    html {
      height: 100%;
    }
    
    body {
      min-height: 100%;
    }
    
    .modal-backdrop {
      bottom: 0;
    }
    

    Hopefully it won't break your code :-)

提交回复
热议问题