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

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

      1. <tfoot id='sDwXA'></tfoot>
      2. <legend id='sDwXA'><style id='sDwXA'><dir id='sDwXA'><q id='sDwXA'></q></dir></style></legend>

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

      3. Bootstrap Modal 坐在背景后面

        Bootstrap Modal sitting behind backdrop(Bootstrap Modal 坐在背景后面)
          <bdo id='zlOHB'></bdo><ul id='zlOHB'></ul>

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

          <tfoot id='zlOHB'></tfoot>
              <tbody id='zlOHB'></tbody>

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

                  <i id='zlOHB'><tr id='zlOHB'><dt id='zlOHB'><q id='zlOHB'><span id='zlOHB'><b id='zlOHB'><form id='zlOHB'><ins id='zlOHB'></ins><ul id='zlOHB'></ul><sub id='zlOHB'></sub></form><legend id='zlOHB'></legend><bdo id='zlOHB'><pre id='zlOHB'><center id='zlOHB'></center></pre></bdo></b><th id='zlOHB'></th></span></q></dt></tr></i><div id='zlOHB'><tfoot id='zlOHB'></tfoot><dl id='zlOHB'><fieldset id='zlOHB'></fieldset></dl></div>
                  本文介绍了Bootstrap Modal 坐在背景后面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  所以我遇到的问题几乎与 @Jamescoo 是,但我认为我的问题在于我已经定位了几个 DIV 来创建一个滑动导航面板.

                  这是我复制的确切设置:http://jsfiddle.net/ZBQ8U/2/

                  奖励:如果您愿意,请随意获取滑动面板的代码 :)

                  z-indexes 不应该冲突,它们的值会显示它们正确堆叠,但在视觉上它们不是.

                  单击打开模态"按钮后,<div class="modal-backdrop fade in"></div> 将覆盖所有内容!(您必须重新运行代码才能重置它)

                  我不知道如何解决这个问题...有什么想法吗?

                  解决方案

                  只需将整个模式移到代码的其余部分之外,到最底部.它不需要嵌套在除主体之外的任何其他元素中.

                  <!-- 所有其他 HTML -->

                  ...</div><!-- 模态--><div class="模态淡入淡出" id="myModal">...</div></身体>

                  演示

                  他们在文档中暗示了这个解决方案.

                  <块引用>

                  模态标记放置
                  始终尝试将 modal 的 HTML 代码放在文档的顶级位置以避免其他组件影响模态框的外观和/或功能.

                  So I'm having nearly the exact same problem as @Jamescoo was but I think that my issue is coming from the fact that I have already positioned a couple of DIVs to create a sliding nav panel.

                  Here's my exact setup replicated: http://jsfiddle.net/ZBQ8U/2/

                  BONUS: Feel free to grab the code for the sliding panel if you'd like :)

                  The z-indexes shouldn't conflict and their values would show that they are stacking correctly, but visually they are not.

                  Once you click the 'Open Modal' button the <div class="modal-backdrop fade in"></div> covers everything! (you'll have to re-run the code to reset it)

                  I don't know quite how to remedy this one...Any ideas?

                  解决方案

                  Just move the entire modal outside of the rest of your code, to the very bottom. It doesn't need to be nested in any other element, other than the body.

                  <body>
                      <!-- All other HTML -->
                      <div>
                          ...
                      </div>
                  
                      <!-- Modal -->
                      <div class="modal fade" id="myModal">
                          ...
                      </div>
                  </body>
                  

                  Demo

                  They hint at this solution in the documentation.

                  Modal Markup Placement
                  Always try to place a modal's HTML code in a top-level position in your document to avoid other components affecting the modal's appearance and/or functionality.

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

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

                  相关文档推荐

                  Using CSS selectors instead of XPath locators when searching through siblings(搜索同级时使用 CSS 选择器而不是 XPath 定位器)
                  Is it possible to get next sibling using cssContainingText in Protractor(是否可以在 Protractor 中使用 cssContainingText 获得下一个兄弟姐妹)
                  How to click on hidden element in protractor?(如何单击量角器中的隐藏元素?)
                  Protractor quot;by.css()quot; vs quot;$()quot; Dollar Sign vs quot;$$()quot; #39;Bling Bling#39;(量角器“by.css()vs“$()美元符号与“$$()亮闪闪)
                  Is Boostrap compatible with Struts 2?(Boostrap 与 Struts 2 兼容吗?)
                  Diplay struts2 error in html page(html页面显示struts2错误)

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

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

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

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