小程序 text标签内的文字竖着排列

html:

  <view><text>活动规则</text></view>
 
css:
view {
  height: 135rpx;
   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