uni-app text changes color

If you only want to change the color of a certain part of the text, you can change it in the following way: 

<text>哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈这是一条<font color='#fe0000'>测试</font>文本
</text>

Even text wrapping is not affected.

Display the result: 

 

Guess you like

Origin blog.csdn.net/watson2017/article/details/130148771