【问题标题】:ui-bootstrap modal html created and loaded, but isn't shownui-bootstrap 模态 html 创建并加载,但未显示
【发布时间】:2015-10-22 14:15:41
【问题描述】:

我正在尝试使用 ui-bootstrap 显示一个简单的模式。

正如您在照片中看到的,模态框的 html 已加载但未显示。

我在论坛上看到一些类似的问题:

我已经按照那里的建议做了,但仍然没有改进。

我更新了我的库,现在我正在使用:

  • 角度:1.4.9
  • 角度动画:1.4.9
  • ui-bootstrap:1.1.1
  • bootstrap.css:3.6.6

但这对我没有帮助。

我还修改了bootstrap.css,就像在另一篇文章中提出的那样:

modal {
    display: none; to display: block;
}

但这对我也没有帮助!

【问题讨论】:

    标签: javascript angularjs modal-dialog angular-ui-bootstrap showmodaldialog


    【解决方案1】:

    我解决了这个问题,通过改变模态玉

    div.modal.fade
      div.modal-dialog
        div.modal-content
          div.modal-header
            button.close(type = 'button', data-dismiss = 'modal', aria-hidden = 'true') ×
            h4.modal-title test
          div.modal-body
            h4 test
          div.modal-footer
           h1 test
    

    到

    div.modal-content
       div.modal-header
         button.close(type = 'button', data-dismiss = 'modal', aria-hidden = 'true') ×
         h4.modal-title test
       div.modal-body
         h4 test
       div.modal-footer
         h1 test
    

    【讨论】:

      猜你喜欢
      • 2014-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-31
      • 2021-08-04
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多