gpt4 book ai didi

javascript - bootstrap模态高亮不出现

转载 作者:行者123 更新时间:2023-11-28 01:57:41 25 4
gpt4 key购买 nike

我对 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com