<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>

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-06-02
相关资源
相似解决方案