开发者

smarty {cycle}, and three values

开发者 https://www.devze.com 2023-01-07 12:19 出处:网络
how use {cycl开发者_Python百科e} with three values? Whats wrong with this code: <table> <tr bgcolor=\"{cycle values=\'#aaaaaa,#bbbbbb\'}\">

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

精彩评论

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