请问怎么设置下划线的颜色和宽度?
要实现在text标签内容:“When I want to strong something,I can say this”这句话下面加“5rpx, #74acbb”的下滑线。
.node{
color: #fcfcfc;
}
.node_item{
font-size: 34rpx;
text-underline-position: 5rpx;
text-decoration-color: rgb(116, 172, 187);
text-decoration-line: 5px solid #74acbb;
text-decoration:underline;
line-height: 40rpx;
}
<view class=‘node’>
<text class=‘node_item’>When I want to strong something,I can say this.</text>
</view>