当前位置: 首页 > news >正文

uni-app:允许字符间能自动换行(英文字符、数字等)

<template><view class="container"><!-- 这里是你的文本内容 -->{{ multilineText }}</view>
</template><style>
.container {word-break: break-all;
}
</style>

例如:

<template><view class="container"><!-- 这里是你的文本内容 -->中文:222222222222222222222222222111111111121133333333333</view>
</template><style>
.container {/* word-break: break-all; */
}
</style>

我现在将换行代码注释掉了

效果图:

写入核心代码:word-break: break-all;

效果图:

http://www.lryc.cn/news/150921.html

相关文章:

  • day 42 |● 121. 买卖股票的最佳时机 ● 122.买卖股票的最佳时机II
  • SQLserver基础入门理论(超基础)
  • (三)行为模式:7、观察者模式(Observer Pattern)(C++示例)
  • 2019CVPR Semantic Graph Convolutional Networks for 3D Human Pose Regression
  • 大数据课程K16——Spark的梯度下降法
  • springboot:时间格式化的5种方法(解决后端传给前端的时间格式转换问题)推荐使用第4和第5种!
  • 六、vim编辑器的使用
  • 【易售小程序项目】项目介绍与系列文章集合
  • 游戏服务器成DDoS最大攻击重灾区
  • [SpringBoot3]博客管理系统(源码放评论区了)
  • C语言——指针基本语法
  • elementui table 在浏览器分辨率变化的时候界面异常
  • 六、Kafka-Eagle监控
  • DBeaver 23.1.5 发布
  • 三种垃圾收集算法,优缺点分析,设计垃圾收集
  • 【链表OJ 10】环形链表Ⅱ(求入环节点)
  • RT-Thread在STM32硬件I2C的踩坑记录
  • 小白学Go基础01-Go 语言的介绍
  • Spring工具类--Assert的使用
  • 无涯教程-Android - Absolute Layout函数
  • 2018ECCV Can 3D Pose be Learned from2D Projections Alone?
  • 干旱演变研究:定义及研究方法
  • 【LeetCode-中等题】114. 二叉树展开为链表
  • 【题解】JZOJ6645 / 洛谷P4090 [USACO17DEC] Greedy Gift Takers P
  • Vue 项目中的错误如何处理的?
  • 网络分层的真实含义
  • RT-Thread 线程间同步
  • Python元类再解释
  • 常用的Spring Boot 注解及示例代码
  • react app教程