我正在尝试创建一个从数据库调用值的表。问题是数据是水平压缩的。我想添加一个水平滚动条,这样输出就不会在另一个单词上垂直狭窄。
这是我的代码
echo('<table border="1">');
echo "<tr>
<td5Folder</td>
<td>MDU</td>
<td>Contractor</td>
<td>Team</td>
<td>RDate</td>
<td>SIDate</td>
<td>ICDate</td>
<td>Status</td>
<td>Remarks1</td>
<td>Remarks2</td>
<td>Remarks3</td>
<td>Bill50</td>
<td>Bill30</td>
<td>Bill20</td>
<td>BillRemark</td>
</tr>";
while($row = mysql_fetch_array($rs)) {
$folderx = $row['FolderNo'];
$mdux = $row['MDU'];
$contractorx = $row['Contractor'];
$teamx = $row['Team'];
$rdatex = $row['RDate'];
$sidatex = $row['SIDate'];
$icdatex = $row['ICDate'];
$statusx = $row['Status'];
$remarks1x = $row['Remarks1'];
$remarks2x = $row['Remarks2'];
$remarks3x = $row['Remarks3'];
$bill50x = $row['Bill50'];
$bill30x = $row['Bill30'];
$bill20x = $row['Bill20'];
$billRemarkx = $row['BillRemark'];
echo "<tr>
<td>$folderx</td>
<td>$mdux</td>
<td>$contractorx</td>
<td>$teamx</td>
<td>$rdatex</td>
<td>$sidatex</td>
<td>$icdatex</td>
<td>$statusx</td>
<td>$remarks1x</td>
<td>$remarks2x</td>
<td>$remarks3x</td>
<td>$bill50x</td>
<td>$bill30x</td>
<td>$bill20x</td>
<td>$billRemarkx</td>
</tr>";
}
echo('</table>');