2013-05-20 83 views
-2

這裏是他的代碼,我基本上從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> 
+0

您是否在Javascript錯誤控制檯中看到任何錯誤? – Prabhuram

+1

這與php無關。請刪除php標籤。 –

+2

注意:不需要同時包含'bootstrap.js' *和*'bootstrap.min.js'。 –

回答

3

在包含引導程序js之前,應首先包含<script src="http://code.jquery.com/jquery.js"></script>

<script src="http://code.jquery.com/jquery.js"></script> 
<script type="text/javascript" src="js/bootstrap.js"></script> 
<script type="text/javascript" src="js/bootstrap.min.js"></script> //Optional 
<script type="text/javascript" src="javascript/autoresize_textbox.js"></script> 
<script type="text/javascript" src="javascript/submit_validate.js"></script> 
+0

命令真的很重要嗎? – Karthik

+0

嘿它工作!非常感謝!不知道您訪問文件的順序。 – Karthik

+0

很高興知道!如果它解決了你的問題,那麼不要忘記接受答案。 –

相關問題