Home  >  Article  >  Backend Development  >  PHP输出横向排列有关问题

PHP输出横向排列有关问题

WBOY
WBOYOriginal
2016-06-13 13:32:561004browse

PHP输出横向排列问题
有两个字段,一个pic ,一个是TITLE  
  现在从数据库里读出来,需要两行一列(第一行读pic,第二行读TITLE),横向3次后换行,
  请教如何实现,谢谢各位了,

------解决方案--------------------
横向排列3组数据,再换行
这个用CSS样式来解决最好









或者 给循环里加一句判断当前是第几行,如果能整除3那么就输出表格换列的标记,好像是
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