dede织梦标签 两个div循环
<divclass="focusleft">{dede:arclistaddfields='school,ggbt'typeid='15'row='5'flag='j'c...
<div class="focus left">
{dede:arclist addfields='school,ggbt' typeid='15' row='5' flag='j' channelid='1' }
<div class="hd">
<ul>
<li class=""><h3>[field:school/]</h3><p>[field:ggbt function='cn_substr(@me,25)'/]</p></li>
</ul>
</div>
<div class="bd">
<ul style="position: relative; width: 500px; height: 304px;">
<li style="position: absolute; width: 500px; left: 0px; top: 0px; display: none;"><a href="[field:arcurl/]"><img src="[field:litpic/]" data-pinit="registered"></a></li>
</ul>
</div>
{/dede:arclist}
</div>
怎么用dede标签让这个两个div样式循环成下面这样 展开
{dede:arclist addfields='school,ggbt' typeid='15' row='5' flag='j' channelid='1' }
<div class="hd">
<ul>
<li class=""><h3>[field:school/]</h3><p>[field:ggbt function='cn_substr(@me,25)'/]</p></li>
</ul>
</div>
<div class="bd">
<ul style="position: relative; width: 500px; height: 304px;">
<li style="position: absolute; width: 500px; left: 0px; top: 0px; display: none;"><a href="[field:arcurl/]"><img src="[field:litpic/]" data-pinit="registered"></a></li>
</ul>
</div>
{/dede:arclist}
</div>
怎么用dede标签让这个两个div样式循环成下面这样 展开
1个回答
展开全部
你的代码里是两部分循环。
应该这么写
<div class="focus left">
<div class="hd">
<ul>
{dede:arclist addfields='school,ggbt' typeid='15' row='5' flag='j' channelid='1'}
<li class=""><h3>[field:school/]</h3><p>[field:ggbt function='cn_substr(@me,25)'/]</p></li>
{/dede:arclist}
</ul>
</div>
<div class="bd">
<ul>
{dede:arclist addfields='school,ggbt' typeid='15' row='5' flag='j' channelid='1'}
<li><a href="[field:arcurl/]"><img src="[field:litpic/]" data-pinit="registered"></a></li>
{/dede:arclist}
</ul>
</div>
</div>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询