dede列表调用出现图片文章重复,怎么处理?
<divclass="m4-prod-list-content-1-con"><ul>{dede:listpagesize='4'}<liclass="fl"><ahre...
<div class="m4-prod-list-content-1-con"> <ul> {dede:list pagesize ='4' } <li class="fl"> <a href=" [field:arcurl function='preg_replace("(.*/m/)","/",@me) /]" title="[field:title/]"> <img alt="[field:title/]" src="[field:picname/]" title="[field:title/]"><span>[field:title/]</span> </a> </li> <li class="fr"> <a href="[field:arcurl function='preg_replace("(.*/m/)","/",@me) /]" style="margin-right:0" title="[field:title/]"> <img alt="[field:title/]" src="[field:picname/]" title="[field:title/]"><span>[field:title/]</span> </a></li> {/dede:list} <li class="clearlist"></li> </ul> </div>
展开
1个回答
展开全部
<div class="m4-prod-list-content-1-con">
<ul>
{dede:list pagesize ='4' }
<li [field:global name=autoindex runphp="yes"](@me%2==1)? @me="class=fl":@me="class=fr";[/field:global]>
<a href=" [field:arcurl function='preg_replace(" (.*/m/) ","/ ",@me) /]" title="[field:title/]">
<img alt="[field:title/]" src="[field:picname/]" title="[field:title/]">
<span>[field:title/]</span></a>
</li>
{/dede:list}
<li class="clearlist"></li>
</ul>
</div>
把你代码改成这段试试
更多追问追答
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询