<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms实现列表页双样式,列表样式循环交替变化

时间:2020-12-21

有时候做列表页需要交替变换样式,那如何实现列表页双样式呢?

在DeDeCMS里面有这样一个函数,可以循环赋予html代码不同的样式,如下: 
 

1 [field:global function=MagicVar("style1","style2")/]

实用举例:

1 <li  class='[field:ID function='MagicVar("list_lgry","list_lbai")'/]'>
2 <span>[field:pubdate function="MyDate('Y-m-d H:i',@me)"/]</span><a href="[field:arcurl/]">[field:title /]</a>
3 </li>

    0
    首页
    案例
    关于
    联系