小程序View内的文字不换行

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

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

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

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

原文地址:https://www.cnblogs.com/ww01/p/10270681.html