2016-09-14 4 views
-2

부트 스트랩이 작동하지 않는 이유는 무엇입니까? 내가 사이트에서 폴더를 다운로드하고 난의 WebContent/부트 스트랩처럼의 WebContent의 루트에 추가/css..js..fonts이클립스에서 부트 스트랩이 작동하지 않는 이유는 무엇입니까?

는 JSP이

<meta name="viewport" content="width=device-width, initial-scale=1"> 
<link href="bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" /> 
<link rel="stylesheet" 
    href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> 
<link href='http://fonts.googleapis.com/css?family=Roboto' 
    rel='stylesheet' type='text/css'> 
<title>Comment Box</title> 
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script> 
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" 
    type="text/css" /> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<title>Insert title here</title> 
</head> 
<body> 

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

    <div class="row" id="featuresheading"> 
     <div class="col-lg-12"> 
      <div class="table-responsive"> 
       <table class="table ta................etc 

하지만 테이블하지 않는 이유처럼 보인다 수감 된 것처럼 보이니? 제발 도와주세요

+0

브라우저의 개발 도구를 사용하여 참조 된 모든 css 및 js 파일을로드 할 수 있는지 확인하십시오. –

+0

@ 911DidBush 비슷한 문제가 있습니다. dev에 콘솔에 내 CSS가로드 된 것을 볼 수 있습니다. 그러나 CSS는 렌더링되지 않습니다. 어떠한 제안? –

답변

0

응용 프로그램 서버에 부트 스트랩 파일을 가져 오려면 전체 게시를 시도하십시오.
Eclipse에서 .jsp로 작업 할 부트 스트랩이 있습니다. 여기 내 구성입니다 :

Bootstrap in WebContent folder

가 여기에 .jsp로의 마크 업의 ...

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<title>Test Bootstrap</title> 
<link href="bootstrap-3.3.6/dist/css/bootstrap.css" rel="stylesheet" 
    type="text/css" /> 
</head> 
<body> 
    <div class="container"> 
     <h1>Test Bootstrap</h1> 
     <table class="table table-striped"> 
      <tr> 
       <td>Bootstrap</td> 
      </tr> 
      <tr> 
       <td>is working</td> 
      </tr> 
     </table> 
    </div> 
</body> 
</html>` 

`당신은 부트 스트랩을 두 번 참조 할 필요가 없습니다. 전체 버전 또는 축소 버전을 선택하십시오. 행운을 빕니다.

관련 문제