2012-05-22 4 views
5

나는에 간단한 테이블을 만들려고 슬림레일 슬림 구문 오류

table class="table table-striped" 
    thead 
    tr 
     th username 

잘 작동하지만 난 오류 잘못된 들여 쓰기를 가지고 번째 또는 TBODY 다른를 추가 할 때, 예를 들어,이 코드는하지 않습니다 저 사람이 나를 도울 수

table class="table table-striped" 
    thead 
    tr 
     th username 
     th provider 

또는

table class="table table-striped" 
    thead 
    tr 
     th username 
    tbody 
    tr 
     td test 

작동?

+4

덧붙여서,'table class = "table table-striped"대신에,'table.table.table-striped'라고 입력 할 수 있습니다. 즉, 클래스의 이름을 점으로 구분 된 체인으로 명명 할 수 있습니다. 시간을 절약하십시오 :) – jdoe

답변

8

원시 소스를 보지 않고서는 동일한 레벨의 들여 쓰기 단계에서 그 다음 라인에 your text editor inserted tabs instead of spaces 만 추측 할 수 있습니다. 모든 것이 공백인지 확인하십시오.

+0

예, 당신은 절대적으로 옳습니다, 고맙습니다. – Maki