2010-07-07 74 views
0

說,我有一個列表填寫表格horiziantally

e.g. 

apple 
car 
bin 

,我怎麼把它在一個表horizo​​natlly填寫而非垂直,即,所以它看起來像這樣的表:

apple car bin 

只使用該代碼的IM重複整個行列表中的每個條目,代碼如下:

<body> 
    <div metal:fill-slot="main"> 
     <h1>List of Species in the Database</h1> 
     <table border="0" width="100%"> 
      <tr tal:repeat="records container/Query_Species"> 
       <td tal:content="records/gene_bank_species">Species</td> 
       <td tal:content="records/gene_bank_species">Species</td>    
      </tr> 
    </div> 
</body> 

回答

0
<table border="0" width="100%"> 
    <tr tal:repeat="records container/Query_Species"> 
     <td tal:content="records/gene_bank_species">Species</td> 
    </tr> 
    <tr tal:repeat="records container/Query_Species"> 
     <td tal:content="records/gene_bank_species">Species</td>    
    </tr> 
</table> 
+0

列表重新獲得兩次重新排列,列 – Gary 2010-07-07 22:52:18

+0

您應該用「apple」替換第一個「Species」,用Sever替換第一個「Species」。我想你會明白這一點 – JochenJung 2010-07-07 23:02:57