<p>table{table-layout:fixed}</p><p>table td{word-wrap:break-word}</p><p>如果要限制td的宽度:有th在th上设置宽度,没有th就在第一行td或者每一行上设置宽度;</p>
PS:
<p>如果数字长度超过想要展示的td的宽度的时候就不会换行,奇葩的数字~~~~~~~~~~~~</p><p>如果数字长度超过想要展示的td的宽度的时候就不会换行,奇葩的数字~~~~~~~~~~~~</p>