我有一个表格,但详细信息列没有换行,表格比屏幕宽,使用水平滚动条很烦人。为什么会发生这种情况?请问我该如何解决?我的代码如下。
任何帮助深表感谢。
提前问候和感谢,韦斯利
<table width="90%">
<tr>
<td class="row" colspan="3"><strong>Follow-Up History</strong></td>
</tr>
<tr>
<td width="15%"><b>Consultant</b></td>
<td width="65%"><b>Details</b></td>
<td width="20%"><b>Date</b></td>
</tr>
<?
$mydb = mysql_connect('localhost', 'root', 'elves');
$q3 = "select * from clientcare.subcalls where callid = '$cID' order by `date` ASC";
$r3 = mysql_query($q3, $mydb) or die("Query q3 died");
while ($row3 = mysql_fetch_array($r3)) {
$scConsultant = $row3["consultant"];
$scDetails = $row3["details"];
$scDate = $row3["date"];
?>
<tr>
<td width="15%"><?= $scConsultant; ?></td>
<td width="65%"><?= $scDetails; ?></td>
<td width="20%"><?= $scDate; ?></td>
</tr>
<tr><td colspan="3"><hr></td><td> </td></tr>
<?
}
mysql_close($mydb);
?>
</table>