2012-02-14 132 views
1

我已经吓坏了两天这个...Twitter的引导模态

我已经建立了一个页面的CSS引导,在页头下面的代码:

<link rel="stylesheet" href="bootstrap.min.css"> 
<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/bootstrap-modal.js"></script> 
<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/bootstrap-transition.js"></script>  
<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/jquery.js"></script> 

在我的身体我有这样的:

<button class="btn btn-large btn-primary" data-toggle="modal" data-target="#modal-signin" data-backdrop="true" data-keyboard="true">Launch Modal</button> 

<div id="modal-signin" class="modal hide fade"> 
    <div class="modal-header"> 
     <a href="#" class="close" data-dismiss="modal">×</a> 
     <h2>Sign in <small>or sign up</small></h2> 
    </div> 
    <div class="modal-body"> 
     <h3>Teste</h3> 
    </div> 
</div> 

在引导文档,这是我必须做的,得到这个工作,但是当我点击按钮,它不会做任何事情...... 我不不知道亲们瑕疵是... 我需要紧急帮助

谢谢。

回答

5

jQuery将需要首先包含在twitter引导程序依赖它。

<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/jquery.js"></script> 
<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/bootstrap-modal.js"></script> 
<script type="text/javascript" src="http://openclassifieds.googlecode.com/svn-history/r119/branches/2.0/themes/twitter/js/bootstrap-transition.js"></script>