<legend id='ScYJa'><style id='ScYJa'><dir id='ScYJa'><q id='ScYJa'></q></dir></style></legend>
    <tfoot id='ScYJa'></tfoot>

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

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

      Bootstrap 模态出现在背景下

      时间:2023-06-13

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

          2. <small id='wvRCk'></small><noframes id='wvRCk'>

              <tbody id='wvRCk'></tbody>

                本文介绍了Bootstrap 模态出现在背景下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我直接使用了来自 Bootstrap 示例的模态代码,并且只包含了 bootstrap.js(而不是 bootstrap-modal.js).但是,我的模态显示在灰色渐变(背景)下方并且不可编辑.

                I have used the code for my modal straight from the Bootstrap example, and have included only the bootstrap.js (and not bootstrap-modal.js). However, my modal is appearing underneath the grey fade (backdrop) and is non editable.

                它是这样的:

                请参阅 this fiddle 了解 一种 重现此问题的方法.该代码的基本结构如下:

                See this fiddle for one way to reproduce this problem. The basic structure of that code is like this:

                <body>
                    <p>Lorem ipsum dolor sit amet.</p>    
                
                    <div class="my-module">
                        This container contains the modal code.
                        <div class="modal fade">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-body">Modal</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </body>
                

                body {
                    padding-top: 50px;
                }
                
                .my-module {
                    position: fixed;
                    top: 0;
                    left: 0;
                }
                

                任何想法为什么会这样或者我可以做些什么来解决这个问题?

                Any ideas why this is or what I can do to fix this?

                推荐答案

                另外,确保BootStrap css和js的版本相同.不同的版本也可以让modal出现在后台:

                Also, make sure that version of BootStrap css and js are the same ones. Different versions can also make modal appearing under background:

                例如:

                不好:

                <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
                <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
                

                好:

                <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
                <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
                

                这篇关于Bootstrap 模态出现在背景下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:避免浏览器弹出窗口拦截器 下一篇:如何在 Redux 中显示一个执行异步操作的模态对话框?

                相关文章

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

                2. <legend id='gwvvY'><style id='gwvvY'><dir id='gwvvY'><q id='gwvvY'></q></dir></style></legend>

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