我想将 TD 宽度设置为字符数,例如,如果我设置为 11,则只能显示 11 个字符,其余字符必须在新行中。我尝试了 width 属性,但它在不同的浏览器/分辨率中显示不同。
<table border="1">
<tr>
<td>test1</td>
<td>CRTAX_G</td>
<td>
28-FEB-2013, 11-MAR-2013, 13-MAR-2013
</td>
</tr>
<tr>
<td>test1</td>
<td>CRTAX_G</td>
<td>
28-FEB-2013, 11-MAR-2013, 13-MAR-2013
</td>
</tr>
<tr>
<td>test1</td>
<td>CRTAX_G</td>
<td>
28-FEB-2013, 04-MAR-2013, 05-MAR-2013, 07-MAR-2013, 11-MAR-2013, 13-MAR-2013, 12-MAR-2013, 08-MAR-2013, 06-MAR-2013
</td>
</tr>
<tr>
<td>test1</td>
<td>CRTAX_G</td>
<td>
28-FEB-2013, 11-MAR-2013, 13-MAR-2013
</td>
</tr>
<tr>
<td>test1</td>
<td>CRTAX_G</td>
<td>
28-FEB-2013, 06-MAR-2013, 08-MAR-2013, 12-MAR-2013, 13-MAR-2013, 11-MAR-2013, 07-MAR-2013, 05-MAR-2013, 01-MAR-2013
</td>
</tr>
<table>
它将表格中的日期在一行中显示为,
28-FEB-2013, 06-MAR-2013, 08-MAR-2013, 12-MAR-2013,
我希望它显示为
28-FEB-2013,
11-MAR-2013,
13-MAR-2013,
每个日期都必须换行。