小程序 text标签内的文字竖着排列
时间:2021-06-09 18:12:49
收藏:0
阅读:15
html:
<view><text>活动规则</text></view>
css:
view {
height: 135rpx;
width: 50rpx;
display: flex; // 让文字居中
justify-content: center;
align-items: center;
}
.rightAdsorbent text {
writing-mode:vertical-rl; // 文字竖行排列
font-size: 26rpx;
color: #fff;
}
若帮到您希望留个赞 辛苦对面的小伙伴了,谢谢
原文:https://www.cnblogs.com/zhang-hong/p/14866894.html
评论(0)