Home  >  Article  >  Backend Development  >  一个很简单的前台展现的有关问题

一个很简单的前台展现的有关问题

WBOY
WBOYOriginal
2016-06-13 13:44:05752browse

一个很简单的前台展现的问题
假如说我从数据库中取出来50条新闻,全部排列出来显得太乱了,希望在每五条新闻中间加一条虚线分割一下。这样的话我应该怎么写?
最后就好像这个网站的列表形式一样:http://news.ucar.cn/pinpaizixun/

我用的是smarty,是用foreach的key吗?实现不了啊。
应该不会用section的start和max吧?那样的话取50条新闻就得写10次了,肯定不合理。。

这样写过的指点下,谢谢了、




------解决方案--------------------
恩 我很高兴得到你的分数。哈哈哈哈

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn