代码之家  ›  专栏  ›  技术社区  ›  mohsinali1317

Bootstrap.modal('show')问题

  •  0
  • mohsinali1317  · 技术社区  · 6 年前

    引导模式无法正常工作,因为它没有将模式打开类添加到body标记。

    所以我有一个按钮,点击这个按钮

    $('#student-password-change-modal').modal('show');
    

    <a href="#" data-toggle="modal" data-dismiss="modal" data-target="#email-password-change-modal">
    Open new modal
    </a>
    

    当第一个模态打开时,它会将模态打开类正确地添加到body标记中,但是当第二个模态打开时,它不会添加它。

    0 回复  |  直到 6 年前