开发者

Fill a table horiziantally

开发者 https://www.devze.com 2023-01-06 05:29 出处:网络
say i have a list e.g. apple car bin How to i get it to fill horizonatlly in a table rather than vertically i.e so it looks like this in a table:

say i have a list

e.g.

apple
car
bin

How to i get it to fill horizonatlly in a table rather than vertically i.e so it looks like this in a table:

apple car bin

The code im using just repeats each entry of the list for the entire row, code below:

<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>


<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

精彩评论

暂无评论...
验证码 换一张
取 消