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

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

  1. <tfoot id='Mod7w'></tfoot>

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

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

      引导关闭模式不起作用

      Bootstrap close modal not working(引导关闭模式不起作用)

        • <bdo id='vD1bf'></bdo><ul id='vD1bf'></ul>
          <tfoot id='vD1bf'></tfoot>

          <legend id='vD1bf'><style id='vD1bf'><dir id='vD1bf'><q id='vD1bf'></q></dir></style></legend>
              <tbody id='vD1bf'></tbody>

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

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

                本文介绍了引导关闭模式不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我这里有两个按钮用于关闭模式.第一个是关闭图标,另一个是取消按钮,两者都使用 data-dismiss 来关闭模式.但是,它们都不起作用.我对另一个模态使用相同的代码,它们工作正常.有什么猜测吗?

                I have two button here that are being used to close the modal. The first is the close icon and the other one is cancel button, both use data-dismiss to close the modal. However, both of them are not working. I am using the same code for another modal and there they are working fine. Any guesses?

                <div id="timeSelectModal{{entry.position - 1}}" style="display: none" class="modal">
                    <div class="modal-dialog">
                        <div id="timeSelectModalContent" class="modal-content">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <label>
                                <input id="checkbox8pm{{entry.position - 1}}" type="checkbox" value="first_checkbox">
                                <label class="checkbox-label">Thursday, 08:00 pm.</label>
                            </label>
                            <br>
                            <label>
                                <input id="checkbox9pm{{entry.position - 1}}" type="checkbox" value="second_checkbox">
                                <label class="checkbox-label">Thursday, 09:30 pm.</label>
                            </label>
                            <div id="time-modal-footer" class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                                <button type="button" class="btn btn-success" id="timeSaveButton{{entry.position - 1}}" v-on:click="setTime(entry.position - 1)">Save</button>
                            </div>
                        </div>
                    </div>
                </div>
                

                推荐答案

                去掉fade"类.

                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

                改成

                <div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                

                淡入淡出是一种效果,如果你去掉淡入淡出,你的模态将没有淡入淡出效果.导致这个问题的几个问题是没有用正确的方法调用模态.

                Fade is an effect, if you remove fade, your modal will not have fade effect. The several problem which cause this issue is not call modal with right method.

                方法错误:$("#myModal").show();

                正确的方法:$("#myModal").modal('show');

                这篇关于引导关闭模式不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                How to make rooftext effect and valley text effect in HTML5 (or Fabric.js)(如何在 HTML5(或 Fabric.js)中制作屋顶文字效果和山谷文字效果)
                Draw border around nontransparent part of image on canvas(在画布上的图像不透明部分周围绘制边框)
                dragging and resizing an image on html5 canvas(在 html5 画布上拖动图像并调整其大小)
                What#39;s the difference between a boolean as primitive and a boolean as property of an object?(作为原始对象的布尔值和作为对象属性的布尔值有什么区别?)
                I want to do animation of an object along a particular path(我想沿特定路径对对象进行动画处理)
                How to upload image into HTML5 canvas(如何将图像上传到 HTML5 画布中)

                  1. <small id='QTfXH'></small><noframes id='QTfXH'>

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

                        <tfoot id='QTfXH'></tfoot>

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