今天发现表格内容不换行,加了word-break: break-all;也没有效果,后来检查发现用户编辑的html内容包含了CSS,其中有一项:

td {padding-top:1px;padding-right:1px;padding-left:1px;color:windowtext;font-size:12.0pt;font-weight:400;font-style:normal;text-decoration:none;font-family:宋体;text-align:general;vertical-align:bottom;border:none;white-space:nowrap;}

里面包含了一条:white-space:nowrap;导致换行失效,修改为white-space:normal;即可。


相关文章:

  • 2021-12-20
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-06-02
猜你喜欢
  • 2022-01-19
  • 2021-12-08
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-02-28
相关资源
相似解决方案