小程序/uniapp长文章两端对齐的方法
.aboutFont {
text-indent: 60rpx;//首行缩进
font-size: 28rpx;
font-weight: 400;
color: rgba(51, 51, 51, 1);
line-height: 50rpx;
text-align:justify;//第一步
text-align-last:left;//第二步
}
**其中,aboutFont是包裹文章的容器,推荐使用view! 不要用text **
- 上一篇 »HTML段落两端对齐代码
- 下一篇 »css 两端对齐的多种实现方式