javascript - bootstrap模态高亮不出现

标签 javascript twitter-bootstrap modal-dialog highlight

我对 Bootstrap 模式的问题是,当我单击必须打开模式的按钮时,模型将正常打开,但没有突出显示,意味着我可以单击任何地方,无论在哪里,它都会立即关闭自身和内容模型的轮廓位于“阴影”的后面。如何让内容高亮显示?我使用了一个名为 Lightbox V2 的类似插件。尝试禁用它,但还是同样的问题。

<button type="button" data-toggle="modal" data-target="#myModal" class="btn" >Regis</button>

<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>

最佳答案

您应该在模式中显示的内容是否仍然隐藏在模式的较暗覆盖层下,并且您不应该访问该隐藏内容?如果这是您的问题,那么我建议您检查一下您的所有<div> <div> 之前的 s模态的正确关闭,因为我遇到了同样的问题,当我检查代码时,我发现我错过了关闭应该在模态代码部分之前完成的 a 。

关于javascript - bootstrap模态高亮不出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18877191/

相关文章:

javascript - 如何通过 ulr load 删除 jQuery UI 对话框上的内容?

javascript - 移动设备上未触发拖动事件

javascript - Bootstrap 模态对话框在按下 Enter 键时捕获第一个按钮

html - 如何在 Bootstrap 和 CSS 中向表单添加清晰的输入按钮?

jquery - Bootstrap nav - 在桌面上保持展开并在移动设备上折叠

javascript - 您可以将现有的 div 复制到模式对话框吗

JavaScript 与正则表达式

javascript - 英特尔XDK |安卓应用程序 |无法将用户输入发布到 Facebook 群组

CSS 禁用 bootstrap box-sizing

jquery - 模态框与 css 关键帧冲突