gpt4 book ai didi

javascript - 使用 Bootstrap 在弹出窗口中出现问题

转载 作者:行者123 更新时间:2023-11-30 12:48:29 25 4
gpt4 key购买 nike

在 bootstrap 中看到一个示例并尝试执行它。我在 getbootstrap.com 中做了同样的事情,但我得到的是下面代码的隐藏形式。我认为模态隐藏效果很好,但它没有显示链接被点击。请有人帮助我解决这个问题。 http://getbootstrap.com/2.3.2/javascript.html#modals

<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<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>

参见 fiddler

http://jsfiddle.net/#&togetherjs=riHQAhk4mM

最佳答案

看: http://jsfiddle.net/QCH3q/

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

在此示例中,我在 Frameworks & Extensions 中添加了缺少的 jquery。您的元素中可能缺少。

尝试添加 jQuery:http://code.jquery.com/jquery-1.10.2.min.js

关于javascript - 使用 Bootstrap 在弹出窗口中出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21780926/

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