Bootstrap Modal - make background clickable without closing out modal

后端 未结 2 1695
孤城傲影
孤城傲影 2021-01-06 11:33

I would like to have a pop up dialog appear next to a form with guidance on how to fill out the form. Right now I am using a bootstrap modal.
The pop up works fine and l

相关标签:
2条回答
  • 2021-01-06 12:02

    It's all about the data-backdrop and also if you want to can disable the keyboard

    <a href="#help" data-toggle="modal" data-backdrop="static" data-keyboard="false">
    
    0 讨论(0)
  • 2021-01-06 12:03

    Finally am able to click in the input fields and scroll through the background with a bootstrap modal on the screen. (still not working fully in IE)

    .modal-backdrop
      display: none !important
    #help
      margin-left: 50%
    .modal-backdrop
      display: none !important
    body.modal-open
      overflow: visible /* this line allowed form to be scrollable */
    .modal-body /* this section allowed form input-fields to be clickable */
      max-height: calc(100vh - 210px)
      overflow-y: auto
    
    0 讨论(0)
提交回复
热议问题