dede列表调用出现文章重复,怎么处理? 50
{dede:listpagesize="3"}<divclass='itemwowfadeInUpfl'><divclass="datefl"><divclass="ye...
{dede:list pagesize="3"} <div class='item wow fadeInUp fl'> <div class="date fl"> <div class="year">[field:pubdate function='strftime("%Y",@me)'/] </div> <div class="day">[field:pubdate function="MyDate('m-d',@me)"/]</div> </div> <div class="info fl"> <div class="name text-over"><a href="[field:arcurl/]" class="trans">[field:title/]</a></div> <div class="brief over">[field:description/]...</div> </div> </div><div class='item wow fadeInUp fr'> <div class="date fl"> <div class="year">[field:pubdate function='strftime("%Y",@me)'/] </div> <div class="day">[field:pubdate function="MyDate('m-d',@me)"/]</div> </div> <div class="info fl"> <div class="name text-over"><a href="[field:arcurl/]" class="trans">[field:title/]</a></div> <div class="brief over">[field:description/]...</div> </div> </div> {/dede:list}
展开
1个回答
展开全部
你底层模版标题使用了两次,当然内容会重复,修改如下:
{dede:list pagesize="3"}
<div class='item wow fadeInUp fl'>
<div class="date fl">
<div class="year">[field:pubdate function='strftime("%Y",@me)'/] </div>
<div class="day">[field:pubdate function="MyDate('m-d',@me)"/]</div>
</div>
<div class="info fl">
<div class="name text-over">
<a href="[field:arcurl/]" class="trans">[field:title/]</a>
</div>
<div class="brief over">[field:description/]...</div>
</div>
</div>
{/dede:list}
至于要的左右布局,修改下css即可。
追问
一定要修改布局才行吗?其他方式有吗?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询