2012-02-14 2 views
1

Я волнуюсь в течение двух дней с этого ...Twitter Bootstrap модальности

Я создал страницу с Bootstrap 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> 

в Документах Bootstrap это то, что я должен сделать, чтобы получить эту работу, но когда я нажимаю на кнопку она ничего не делает ... Я не» я знаю, что blem is ... Мне нужна срочная помощь

Спасибо.

ответ

5

jQuery необходимо будет включить сначала, так как зависит от него.

<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>