在我们android中有的时候会要求textview控件显示文字部分颜色不同而且大小也不同,这个在微信小程序中怎么做呢?因为在微信小程序中所有的显示都是通过标签来实现的,那么标签时可以嵌套的,比如显示hello world  要求hello颜色是红色 而且字体大小为50rpx;

<text class='user_msg'><text class="hello">hello</text>world</text>

hello 属性设置:

.hello{

font-size: 50rpx;

color: red;

}

 

TAG标签: 小程序微信字体颜色

http://www.xiaochengxub.com/read-103498.html