2013-12-12 2 views
-3

안녕하세요 여러분, 저는 MAMP에서 PHP를 사용하고 있습니다.Twitter Bootstrap이 PHP에서 작동하지 않습니다

내 기본 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를이 MAMP.

+0

작동하지 않는다는 의미는 무엇입니까? –

+0

스크립트가 헤드 태그에없는 이유는 무엇입니까? 시작 지점으로 이동 한 다음 콘솔을 확인하고 파일이 올바른 위치에 있는지 확인하십시오. – DavidB

+0

작동하지 않는 기능은 무엇입니까? 어떤 오류가 있습니까? – Salman

답변

0

스크립트가 올바른 디렉토리를 참조하는지 확인하십시오 ..

관련 문제