WeChat Mini Programs line spacing setting invalid how to solve?

developed by Mini Program, after the font is reduced, the line spacing setting is invalid and takes up too much space

clipboard.png

.roomtext {
width: 498rpx;
}
.roomtext text {
width: 498rpx;
height: 108rpx;
color:-sharpa3a3a3;
font-size: 20rpx;
line-height: 20rpx;
}

what if the line-height setting does not respond?

Mar.20,2021

guess you are a text tag with one line of text. Take a look at your wxml structure.


set text {float:left;}


text tag parent element line-height

Menu