2013-12-12 64 views
-3

嘿傢伙我使用PHP與MAMP。Twitter Bootstrap不適用於PHP

顯然bootstrap沒有出現在我的基本PHP應用程序中。我有index.php文件。

這是我的代碼:

<!DOCTYPE html> 
<html> 
    <head> 
    <title>Summit</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <!-- Bootstrap --> 
    <link href="css/bootstrap.css" rel="stylesheet"> 

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> 
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> 
    <!--[if lt IE 9]> 
     <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> 
     <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> 
    <![endif]--> 
    </head> 
    <body> 
    <h1>Summit</h1> 
    <!-- Include all compiled plugins (below), or include individual files as needed --> 
    <script src="js/bootstrap.js"></script> 
    </body> 
</html> 

而我在我的htdocs文件夾bootstrap.js,bootstrap.css,和的index.php(含有上面的代碼),它似乎是默認的目錄使用甲基苯丙胺。

+0

你是什麼意思不工作? –

+0

爲什麼你的腳本不在你的頭標籤中?將其移動到那裏開始,然後檢查控制檯並確保文件位於正確的位置 – DavidB

+0

什麼不起作用?你有什麼錯誤嗎? – Salman

回答

0

檢查腳本是否正確引用正確的目錄..

相關問題