vue中css处理文本不换行问题 传来的数据中有空格或换行的时候,在用 v-text或v-html展示时不会换行,使用css属性 // CSS div{ white-space: pre-wrap; }