2014-07-13 1 views
2

테이블을 사용하여 일부 데이터를 테이블 형식으로 출력합니다. (아래는 내가 실제로 작업하고있는 것의 작은 예입니다) 2 열 레이아웃을 만들려고합니다. 두 열 모두 테이블 행을 포함합니다. 하지만 나는 테이블 행에 대한 컨테이너로 두 td를 만들 것을 시도하고있다. 내 코드는어떻게 테이블 열을 테이블 열에 중첩시킬 수 있습니까?

<table> 

<tr> 


    <td> 
    <tr><td>I am nested in a table column </td><td>I am also nested in a table column </td></tr> 
    </td> 


    <td> 
    <tr><td>I am nested in the second table column </td><td>I am also nested the second table column </td></tr> 
    </td> 


</tr> 


</table> 

보이는 그러나 브라우저에 표시 단지로 렌더링 할 수 있도록 브라우저가 다르게 렌더링 어떤 이유로 ...에 대한

누군가가 저를 도와 주실 수있는 방법을

이입니다 내가 작성한 HTML 코드? 감사!

<table> 

<tr> 


    <td> 
    <tr><td>I am nested in a table column </td><td>I am also nested in a table column </td></tr> 
    </td> 


    <td> 
    <tr><td>I am nested in the second table column </td><td>I am also nested the second table column </td></tr> 
    </td> 


</tr> 


</table> 

답변

0

이 시도 :

<table> 
<tr> 
    <td> 
    <table> 
     <tr> 
     <td>I am nested in a table column</td> 
     <td>I am also nested in a table column</td> 
     </tr> 
     <tr> 
     <td>I am nested in the second table column</td> 
     <td>I am also nested the second table column</td> 
     </tr> 
    </table> 
    </td> 
</tr> 
</table> 

Working fiddle합니다.

+0

Chris97ong. 응답 해 주셔서 감사합니다. 테이블을 중첩하지 않고이 작업을 수행하는 방법을 알아 내려고했지만 ... 유일한 해결책 인 것 같습니다! 고마워요 !!! – user3790981

관련 문제