开发者

smarty {cycle}, and three values

how use {cycl开发者_Python百科e} with three values? Whats wrong with this code:

<table>
   <tr bgcolor="{cycle values='#aaaaaa,#bbbbbb'}">
      <td bgcolor="{cycle values='#1112233,#334455'}">value</td>
      <td bgcolor="{cycle values='#998811,#334466'}">value1</td>
   </tr>
</table>


I think you need to give them unique names:

{cycle name='color1' values='#aaaaaa,#bbbbbb'}
{cycle name='color2' values='#1112233,#334455'}
{cycle name='color3' values='#998811,#334466'}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜