一个控制图片按每行多少个输出的有关问题向大家!多谢
Jun 13, 2016 pm 01:53 PM
一个控制图片按每行多少个输出的问题向大家求助!谢谢
我从数据库查询出很多的图片,我现在想控制每行只显示4张图片,图片底下显示出图片名字等等,但是我下面的代码总是不能正常工作.(如果不显示名字的话我已经知道怎么做了,因为要在图片底下显示文字,所以加了一个TR,图片就不能控制了.)
[code]
while ($photoRows=mysql_fetch_array($result2)){
$i=$i+1;
?>
|
  |
echo "
?>
[/code]
------解决方案--------------------
原理:循环单元格,在单元格中前导一个一列两行的表格即可,示例代码:
|
------解决方案--------------------
以前的例子
$product_sql= "select * from product order by pub_time desc limit 4 ";

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution: Your organization requires you to change your PIN

How to adjust window border settings on Windows 11: Change color and size

How to change title bar color on Windows 11?

How to enable or disable taskbar thumbnail previews on Windows 11

OOBELANGUAGE Error Problems in Windows 11/10 Repair

What are the differences between Huawei GT3 Pro and GT4?

10 Ways to Adjust Brightness on Windows 11
