当前位置:网站首页>Applet - multiple text line breaks in view
Applet - multiple text line breaks in view
2022-07-01 13:40:00 【Xijing swordsman】
view More than one of them text Line break
The applet wants to view Write several different text, Then I find that I can't wrap well , The default seems to be arranged from left to right .
solve :
Need to be in view Define a class You can solve the problem , What needs to be set is dispaly=flex;
<view class="tview">
<text style="font-size:50rpx;">one</text>
<text style="font-size:40rpx;">two</text>
<text style="font-size:30rpx;">three</text>
</view>
acss/wxss Code in file
.tview{
display: flex;
flex-direction: column;
}
One of the little programs view,text Line break
One of the little programs view,text Line break
style :
view Line break :white-space:pre-line;
text Line break :word-break:break-all;
边栏推荐
- Analysis report on the development trend and Prospect of new ceramic materials in the world and China Ⓐ 2022 ~ 2027
- MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
- [241. Design priority for operation expression]
- 学历、长相、家境普通的人,未来的发展方向是什么?00后的职业规划都已经整得明明白白......
- Leetcode第一题:两数之和(3种语言)
- 1.8新特性-List
- 7. Icons
- Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
- Understand the window query function of tdengine in one article
- Blind box NFT digital collection platform system development (build source code)
猜你喜欢

【机器学习】VAE变分自编码器学习笔记

Meta enlarge again! VR new model posted on CVPR oral: read and understand voice like a human

A Fletter version of Notepad

spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?

Explain IO multiplexing, select, poll, epoll in detail

Simple two ball loading

Spark source code (V) how does dagscheduler taskscheduler cooperate with submitting tasks, and what is the corresponding relationship between application, job, stage, taskset, and task?

MySQL六十六问,两万字+五十图详解!复习必备

Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era

Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
随机推荐
【机器学习】VAE变分自编码器学习笔记
word2vec训练中文词向量
终端识别技术和管理技术
二传感器尺寸「建议收藏」
Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
Asp.netcore利用dynamic简化数据库访问
新手准备多少钱可以玩期货?农产品可以吗?
分布式事务简介(seata)
Computer network interview knowledge points
研发效能度量框架解读
Use of shutter SQLite
String input function
B站被骂上了热搜。。
Apache-Atlas-2.2.0 独立编译部署
arthas使用
5. Use of ly tab plug-in of header component
Global and Chinese silicone defoamer production and marketing demand and investment forecast analysis report Ⓨ 2022 ~ 2027
2. Sensor size "recommended collection"
Understand the window query function of tdengine in one article
1.8新特性-List