<p> <a href="/Mobile/MProducts/lmobglrm03A.html" title="罗密欧壁挂炉RM03A"> <img src='yangshi/picture/20200829135703_3881.png_130x130.jpg' height='130' alt='罗密欧壁挂炉RM03A' title='罗密欧壁挂炉RM03A'>罗密欧壁挂炉RM03A </a> <a href="/Mobile/MProducts/lmobglrm05A.html" title="罗密欧壁挂炉RM05A"> <img src='yangshi/picture/20210320100104_8711.jpg_130x130.jpg' height='130' alt='罗密欧壁挂炉RM05A' title='罗密欧壁挂炉RM05A'>罗密欧壁挂炉RM05A</a> </p>
我想循环这个p标签 里面的两个不同的数据 怎么循环呢
{if $key%2 ==0}</p>{/if}
{if ($key+1)%2 !=0}<p>{/if} <a href="/Mobile/MProducts/lmobglrm03A.html" title="罗密欧壁挂炉RM03A"> <img src='yangshi/picture/20200829135703_3881.png_130x130.jpg' height='130' alt='罗密欧壁挂炉RM03A' title='罗密欧壁挂炉RM03A'>罗密欧壁挂炉RM03A </a> <a href="/Mobile/MProducts/lmobglrm05A.html" title="罗密欧壁挂炉RM05A"> <img src='yangshi/picture/20210320100104_8711.jpg_130x130.jpg' height='130' alt='罗密欧壁挂炉RM05A' title='罗密欧壁挂炉RM05A'>罗密欧壁挂炉RM05A</a> {if ($key+1)%2 ==0}</p>{/if}{if ($key+1)%2 !=0 && $is_last}</p>{/if}<p> {module module=news catid=1 order=displayorder,updatetime num=10} <a href="{$t.url}"> <img src='yangshi/picture/20200829135703_3881.png_130x130.jpg' height='130'>{$t.title} </a> {if ($key+1)%2 ==0 && !$is_last} </p><p> {/if} {/module} </p>