1. <legend id='mD0Cd'><style id='mD0Cd'><dir id='mD0Cd'><q id='mD0Cd'></q></dir></style></legend>
      <i id='mD0Cd'><tr id='mD0Cd'><dt id='mD0Cd'><q id='mD0Cd'><span id='mD0Cd'><b id='mD0Cd'><form id='mD0Cd'><ins id='mD0Cd'></ins><ul id='mD0Cd'></ul><sub id='mD0Cd'></sub></form><legend id='mD0Cd'></legend><bdo id='mD0Cd'><pre id='mD0Cd'><center id='mD0Cd'></center></pre></bdo></b><th id='mD0Cd'></th></span></q></dt></tr></i><div id='mD0Cd'><tfoot id='mD0Cd'></tfoot><dl id='mD0Cd'><fieldset id='mD0Cd'></fieldset></dl></div>

        <small id='mD0Cd'></small><noframes id='mD0Cd'>

          <bdo id='mD0Cd'></bdo><ul id='mD0Cd'></ul>

        <tfoot id='mD0Cd'></tfoot>
      1. 防止 Bootstrap Modal 在单击外部或按 Escape 时消失?

        Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape?(防止 Bootstrap Modal 在单击外部或按 Escape 时消失?)

          • <bdo id='tdufV'></bdo><ul id='tdufV'></ul>
              <tfoot id='tdufV'></tfoot>
            • <small id='tdufV'></small><noframes id='tdufV'>

              <i id='tdufV'><tr id='tdufV'><dt id='tdufV'><q id='tdufV'><span id='tdufV'><b id='tdufV'><form id='tdufV'><ins id='tdufV'></ins><ul id='tdufV'></ul><sub id='tdufV'></sub></form><legend id='tdufV'></legend><bdo id='tdufV'><pre id='tdufV'><center id='tdufV'></center></pre></bdo></b><th id='tdufV'></th></span></q></dt></tr></i><div id='tdufV'><tfoot id='tdufV'></tfoot><dl id='tdufV'><fieldset id='tdufV'></fieldset></dl></div>
                    <tbody id='tdufV'></tbody>
                  <legend id='tdufV'><style id='tdufV'><dir id='tdufV'><q id='tdufV'></q></dir></style></legend>
                  本文介绍了防止 Bootstrap Modal 在单击外部或按 Escape 时消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我将 Twitter Bootstrap 模式用作向导窗口,并希望防止用户在单击模式外部或按下退出键时关闭它.相反,我希望它在用户按下完成按钮时关闭.我怎样才能实现这种情况?

                  I'm using the Twitter Bootstrap modal as a wizard window, and would like to prevent the user from closing it when clicking outside of the modal or when pressing escape. Instead, I want it to be closed when the user presses the finish button. How could I achieve this scenario?

                  推荐答案

                  如果使用 JavaScript 那么:

                  If using JavaScript then:

                  $('#myModal').modal({
                      backdrop: 'static',
                      keyboard: false
                  })
                  

                  或在 HTML 中:

                  <a data-controls-modal="your_div_id" data-backdrop="static" data-keyboard="false" href="#">
                  

                  这篇关于防止 Bootstrap Modal 在单击外部或按 Escape 时消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to test html links with protractor?(如何用量角器测试 html 链接?)
                  protractor unknown error, removing attribute from DOM(量角器未知错误,从 DOM 中删除属性)
                  How to set HTML5 type=quot;datequot; input fields (e.g. in Chrome) using Selenium/Protractor?(如何设置 HTML5 type=date;使用 Selenium/Protractor 的输入字段(例如在 Chrome 中)?)
                  HTML form values adding commas in Classic ASP(在经典 ASP 中添加逗号的 HTML 表单值)
                  How to integrate WebSockets on top of a classic ASP web application?(如何在经典的 ASP Web 应用程序之上集成 WebSockets?)
                  ActiveX Calendar Control Not Working In Windows 7(ActiveX 日历控件在 Windows 7 中不起作用)
                    <tbody id='TRROm'></tbody>

                    <i id='TRROm'><tr id='TRROm'><dt id='TRROm'><q id='TRROm'><span id='TRROm'><b id='TRROm'><form id='TRROm'><ins id='TRROm'></ins><ul id='TRROm'></ul><sub id='TRROm'></sub></form><legend id='TRROm'></legend><bdo id='TRROm'><pre id='TRROm'><center id='TRROm'></center></pre></bdo></b><th id='TRROm'></th></span></q></dt></tr></i><div id='TRROm'><tfoot id='TRROm'></tfoot><dl id='TRROm'><fieldset id='TRROm'></fieldset></dl></div>

                        <bdo id='TRROm'></bdo><ul id='TRROm'></ul>

                          <legend id='TRROm'><style id='TRROm'><dir id='TRROm'><q id='TRROm'></q></dir></style></legend>

                          • <tfoot id='TRROm'></tfoot>

                            <small id='TRROm'></small><noframes id='TRROm'>