view text{ display: block; } view text:nth-of-type(1){ font-size: 30rpx; color: #000; padding: 30rpx 0; text-align: center; } view text:nth-of-type(2){ padding: 0 30rpx; font-size: 28rpx; line-height: 50rpx; color: #999; }