<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 模态出现在背景下

      Bootstrap modal appearing under background(Bootstrap 模态出现在背景下)

    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 模态出现在背景下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                What are valid deviceNames for Chrome emulation testing with Protractor?(使用 Protractor 进行 Chrome 模拟测试的有效设备名称是什么?)
                Protractor Check if Element Does Not Exist(量角器检查元素是否不存在)
                Protractor e2e Tests Login Redirection(Protractor e2e 测试登录重定向)
                Explain about async/ await in Protractor(解释 Protractor 中的 async/await)
                Protractor browser.wait doesn#39;t wait(量角器 browser.wait 不等待)
                How to use Protractor with Angular 2?(如何在 Angular 2 中使用量角器?)

                  <tbody id='gwvvY'></tbody>

                  • <small id='gwvvY'></small><noframes id='gwvvY'>

                  • <legend id='gwvvY'><style id='gwvvY'><dir id='gwvvY'><q id='gwvvY'></q></dir></style></legend>

                    • <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>