gpt4 book ai didi

javascript - Bootstrap : Twitter Bootstrap Modal not hidden when page loaded

转载 作者:行者123 更新时间:2023-11-30 08:09:24 24 4
gpt4 key购买 nike

<分区>

我从给定的示例中复制了完全相同的代码:

<-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>

<-- Modal -->
<div class="modal" id="myModal" 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>

来自

http://twitter.github.com/bootstrap/javascript.html#modals

当页面首次加载时,模式立即出现。我没有 javascript 来触发它。他们网站上的现场演示并不像这样。有什么遗漏吗?

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