On some Android machines, the last word of Mini Program's text changes lines.

1. Recently, I have been doing a WeChat Mini Programs with such an interface

.

clipboard.png

,

text:

clipboard.png

Model: OPPOR11S
2. Code:
< view style="background-color:white;margin-top:20rpx;margin-bottom:40rpx;height:88rpx;width:100%;display:flex;" >
< text style="font-size:34rpx;display:block;height:88rpx;line-height:88rpx;margin-left:30rpx;margin-right:40rpx;" > {{editContent}} < / text >
< input style="font-size:34rpx;display:block;height:88rpx;line-height:88rpx;" placeholder=" Please enter {{editContent}} "placeholder-style="font-size:34rpx; Color:-sharpb2b2b2;" > < / input >
< / view >

ask the Great God for answers!

Mar.07,2021

just give text a width, such as 4em.

Menu