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

PHP输出横向排列有关问题

WBOY
Release: 2016-06-13 10:20:51
Original
885 people have browsed it

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

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









或者 给循环里加一句判断当前是第几行,如果能整除3那么就输出表格换列的标记,好像是
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template