各位大神,请教一下,这种样式的新闻列表 标签怎么写?谢谢
标签取 新闻列表后,每2个取 <li class="case-li"> 这个样式,依此循环结算。
模板样式需求,如何写?感谢各位!
<li class="case-li">
<span>
<a href="/cms/show-1.html" title="新闻1" target='_self'>
<img class="case-lazy" data-src="/public/uploads/images/20180302/e04c0b963510abd7a6a75770ac73cfe5.jpg" alt="新闻1">
<font>新闻1</font>
</a>
</span>
<span>
<a href="/cms/show-2.html" title="新闻2" target='_self'>
<img class="case-lazy" data-src="/public/uploads/images/20180402/e04c0b963510abd7a6a75770ac73cfe5.jpg" alt="新闻2">
<font>新闻2</font>
</a>
</span>
</li>
<li class="case-li">
<span>
<a href="/cms/show-3.html" title="新闻3" target='_self'>
<img class="case-lazy" data-src="/public/uploads/images/20180511/1_20190411151735b6360.jpeg" alt="新闻3">
<font>新闻3</font>
</a>
</span>
<span>
<a href="/cms/show-4.html" title="新闻4" target='_self'>
<img class="case-lazy" data-src="/public/uploads/images/20180611/1_20190411151735b6360.jpeg" alt="新闻4">
<font>新闻4</font>
</a>
</span>
</li>