我有一个按钮:
<a data-target='#login' role='button' class='btn' data-toggle='modal'>Login</a>
那是早些时候工作的,但现在它不会打开我的模式。
这是我的模态:
<!-- Login Modal -->
<div id="login" class="modal hide fade" tabindex="-1" aria-labelledby="loginform" aria-hidden="true">
<!-- Header -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Welcome!</h3>
</div><!--/header -->
<!-- Body -->
<div class="modal-body">
<form action="loginmanager.php" class="form-signin" method="post">
<input name="username" type="text" class="input-block-level" placeholder="Username">
<input name="password" type="password" class="input-block-level" placeholder="Password">
<label class="checkbox">
<input type="checkbox" value="remember-me">"Remember me"</label>
</label>
<button class="btn btn-large btn-primary" type="submit">Sign in</button>
</form>
</div><!--/.modal-body -->
<!-- Footer -->
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
</div><!--/.modal-footer -->
我到底做错了什么?看了好几遍都找不到原因