1 <table style="TABLE-LAYOUT: fixed" border="1" cellspacing="0" cellpadding="0" width="200"> 2 <tbody> 3 <tr> 4 <td style="WORD-WRAP: break-word" width="20">sssssssssssssssssssssssssssssssssssssssssssssss </td> 5 <td>aaaaa</td> 6 </tr> 7 <tr> 8 <td style="WORD-WRAP: break-word" width="20">sssssssssssssssssssssssssssssssssssssssssssssss </td> 9 <td>aaaaa</td> 10 </tr> 11 </tbody> 12 </table>
设置table 的 style="table-layout:fixed;" 然后设置td的 style="word-wrap:break-word;"