今天发现View内的文字一行过去直接被屏幕右边吃掉,没有预期的换行,设置width也不管用,最后用它解决了

1. white-space:pre-line(不会保留空白和tabs)

2. white-space:pre-wrap(会保留空白和tabs)

 

参考文章:https://blog.csdn.net/qq_2842405070/article/details/69415164

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-02-06
  • 2022-01-16
  • 2021-12-31
  • 2022-01-27
  • 2022-01-29
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2022-01-15
  • 2022-01-20
  • 2022-01-28
  • 2021-12-29
  • 2022-01-29
相关资源
相似解决方案