2010-07-07 61 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