Twitter Bootstrap模式

cap*_*ulu 1 javascript css jquery 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>
Run Code Online (Sandbox Code Playgroud)

在我的身体里,我有这个:

<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>
Run Code Online (Sandbox Code Playgroud)

在Bootstrap文档中,这是我必须要做的才能使其工作,但是当我点击按钮时它没有做任何事情......我不知道问题是什么......我需要紧急帮助

谢谢.

Gaz*_*ler 5

首先需要包含jQuery,因为twitter bootstrap依赖于它.

<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>    
Run Code Online (Sandbox Code Playgroud)