横向添充,够N列换行

2009-05-13 06:36:08来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


table width="500" border="1" cellspacing="0" cellpadding="3">
    tr>
    {section name=sec1 loop=$my_array}>
        td>{$my_array[sec1].value}>/td>
    {if $smarty.section.sec1.rownum is div by 2}>
    /tr>
    tr>
    {/if}>
    {/section}>
    /tr>
/table>


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2326/showart_235812.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:FreeBSD使用大全----王波(可以下载附件)

下一篇:gmirror使用