Heim > Fragen und Antworten > Hauptteil
<?php
$s=0;
echo '<table width="800" border="1">';
while( $s<100){
if($ s%10==0){
.
echo '<td>'. $s.'</td>';
$s++; 0Libra2019-04-27 17:15:51
echo '<tr>'.$s.'</tr>';的原因,因为你每个$s%==0后直接在tr里面输出了那个值。而tr输出内容会直接表现在table上方。正常的话一般会在<tr> 套 <td>标签。