TD content wrap table TD too many text wrap after setting width

Time:2021-2-20

Set the style of table- layout:fixed; “Then set TD’s style =” word- wrap:break-word; “Yes

Copy code

The code is as follows:

<table style=”TABLE-LAYOUT: fixed” border=”1″ cellspacing=”0″ cellpadding=”0″ width=”200″>
<tbody>
<tr>
<td style=”WORD-WRAP: break-word” width=”20″>sssssssssssssssssssssssssssssssssssssssssssssss </td>
<td>aaaaa</td>
</tr>
<tr>
<td style=”WORD-WRAP: break-word” width=”20″>sssssssssssssssssssssssssssssssssssssssssssssss </td>
<td>aaaaa</td>
</tr>
</tbody>
</table>