电话
13363039260
云优cms如何实现每隔N条新闻用虚线分割?
1 2 3 4 5 6 7 8 | <? php $num = 1;?> < yunu:list cid = "$cid" limit = "8" orderby = "sort desc" > < li > < a href = "{$list.url}" >{$list.title}</ a > </ li > < if condition = "$num % 4 eq 0" >< div class = "line" ></ div ></ if > <? php $num++;?> </ yunu:list > |
<if condition="$num % 4 eq 0">是指每隔4条就会自动加一条line,