Tất cả mã khởi động của tôi đều hoạt động ngoại trừ phương thức. Chế độ hiển thị, nhưng toàn bộ màn hình tối. Đó là, phương thức có vẻ là "đằng sau" màu xám.Twitter Bootstrap Modal có tối không?
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<a href="#myModal" data-toggle="modal">Login</a>
<div id="myModal" class="modal hide fade in" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">X</button>
<h3 id="myModalLabel">Log in</h3>
</div>
<div class="modal-body">
<p>
<form class="modal-form" id="loginform" >
<input type="text" name="username" placeholder="login" id="username">
<input type="text" name="password" placeholder="password" id="userpassword">
</form>
</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-success">Login</button>
</div>
</div>
Tải lại tất cả bootstrap CSS & JS ... dường như khắc phục được sự cố. – user1935559
Điều này cũng xảy ra với tôi. Nguyên nhân là phương thức không phải là con trực tiếp của 'cơ thể' nhưng khá sâu trong hệ thống phân cấp. –
Cảm ơn, @PeterSankauskas, đã giúp tôi. – jrhorn424