1

这是我打算运行的代码:模态的第二个示例

但即使在 jsfiddle 上也没有用:link

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

<!-- Modal -->
<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…&lt;/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>
4

1 回答 1

3

除了已经引用的文件之外,您还缺少对bootstrap.js或需要的引用。bootstrap.min.jsbootstrap.min.css

请参阅此更新的工作小提琴http://jsfiddle.net/cKH8X/2/

于 2013-07-05T06:31:08.457 回答