這裏是他的代碼,我基本上從twitter引導頁面複製。但是,它一點都不加載!我的所有文件都是正確的,但模式仍未顯示。請幫幫我。twitter bootstrap模式不加載
<head>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery.js"></script>
<script type="text/javascript" src="javascript/autoresize_textbox.js"></script>
<script type="text/javascript" src="javascript/submit_validate.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<!-- Button to trigger modal -->
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</body>
您是否在Javascript錯誤控制檯中看到任何錯誤? – Prabhuram
這與php無關。請刪除php標籤。 –
注意:不需要同時包含'bootstrap.js' *和*'bootstrap.min.js'。 –