2014-02-14 44 views
1

在引导程序中看到一个示例并尝试执行它。我在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

+1

我假设你包括jQuery和引导js文件? – snollygolly

+0

创建一个[fiddler](http://jsfiddle.net)请 –

+0

对不起。我不能让你@SLoW – Pravin

回答