textarea行末断句问题(IOS中)
发布于 5 年前 作者 lchang 6889 次浏览 来自 问答

textarea放在fixed的view中,使用auto-height时,其中行末的拼音输入会中断。

<view class="footer">

    <textarea auto-height="{{true}}" maxlength="{{-1}}" fixed="{{true}}" class="input-msg">

   </textarea>

</view>

.footer{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 15rpx;
  background-color: #cccccc;
 
  .input-msg{
    border: 1rpx solid black;
    height: 66rpx;
    padding: 15rpx 6rpx;
  }
}

效果如图:

测试机型信息:

3 回复

@A 大白, 好的谢谢!

@开心就好。没办法,改用input了。。。

兄弟, 有解决办法没? 我也遇到同样的问题了.

回到顶部