2013-01-31 4 views
-4

테이블 레이아웃을 div 레이아웃으로 변환 할 수있는 사람이 있습니까?div가있는 레이아웃

<table> 
     <thead> 
      <tr> 
       <td colspan="3" bordercolor="red" width="1400px" height="50px"> 
       </td> 
      </tr> 
     </thead> 
     <tbody> 
      <td bordercolor="red" width="400px" height="500px"> 
      </td> 
      <td bordercolor="red" width="800px" height="50px"> 
      </td> 
      <td bordercolor="red" width="400px" height="500px"> 
      </td> 
     </tbody> 
     <tfoot> 
      <tr> 
       <td colspan="3" bordercolor="red" width="1400px" height="50px"> 
       </td> 
      </tr> 
     </tfoot> 
    </table> 

덕분에 많은 :

표는 다음 구조를 가지고있다!

+2

Stackoverflow는 변환 서비스를 제공하지 않습니다 :) CSS 배우기, 아주 조용합니다. –

+0

해봤습니까? 열을 표시하는 데 "float : left"를 사용하십시오. –

+0

지난 주 html로 시작했습니다. 도움이 필요하다는 것은 정상입니다. – extrass

답변

0
here is the design 
<div style="width:100%;"> 
    <div style="height:50px; background-color:#CCCCCC;"> </div> 
    <div style="height:500px;"> 
    <div style="width:30%;background-color:#0099CC;height:500px; float:left"></div> 
    <div style="width:40%;background-color:#0066CC;height:500px; float:left"></div> 
    <div style="width:30%;background-color:#009999;height:500px; float:left"></div> 
    </div> 
<div style="height:50px; background-color:#CCCCCC;"> </div> 
</div>