我从数据库调用的图,显示出来成了一排了...请教大师怎么让他分行显示....分3行,每行显示4个图片代码如:  <?php for($i=count($indexData)-1;$i>-1;$i--){ ?>    <td width="25%" valign="top" align="center"><table cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td valign="top" align="center" height="110"><a href="rent.php?page=<?php echo $indexData[$i]['p_id']; ?>"><img src="upimg/<?php echo $indexData[$i]['p_repic']; ?>" style="width:150px;height:100px;border-style: solid; border-width: 1px; border-color: #cccccc; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; cursor: pointer;" alt=""></a> </td>
                    </tr>
                <tr>
                  <td height="25" align="left" valign="middle" style="padding-top: 5px; padding-left: 11px;"><STRONG><a href="rent.php?page=<?php echo $indexData[$i]['p_id']; ?>"><?php echo $indexData[$i]['p_title']; ?> </a></STRONG></td>
                </tr>
                <tr>
                  <td height="18" align="left" valign="middle" style="padding-left: 11px;"> Price: <strong>RMB<?php echo $indexData[$i]['p_price']; ?></strong></td>
                </tr>
                <tr>
                  <td height="18" align="left" valign="middle" style="padding-left: 11px;">Property: <strong><?php $ptype=array('All type','Old building','Apartment','Villa','Townhouse'); echo $ptype[$indexData[$i]['p_type']]; ?></strong></td>
                </tr>
            </table></td>
            <?php } ?>