微信小程序textarea的cursor-spacing无效是怎么回事?

小程序 文章 2022-03-04 17:40 1447 0 全屏看文

AI助手支持GPT4.0

微信小程序textarea的cursor-spacing无效是怎么回事?Why is the cursor-spacing of the WeChat applet textarea invalid?

微信小程序textarea的cursor-spacing无效是怎么回事?

<textarea class="textArea" value="{{item.explain}}" style="height:80px;" cursor-spacing="100"></textarea>

弹出键盘时,textarea被键盘盖住了。

弹出键盘时,textarea被键盘盖住了。

回答:

社区技术运营专员-horanzhou:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

行者:


  <scroll-view scroll-y="true" style="height:{{height}}px;">

这里还有一些input......

    <view class="textItem" style="height:150px;">

      <view class="textTitle">

        <label>备注:</label>

      </view>

      <view class="textView" style="height:150px;">

        <textarea class="textArea" value="{{distrInfo.explain}}" style="height:140px;" cursor-spacing="100" bindinput="inputExplain"></textarea>

      </view>

    </view>


    <view style="height:550px;"></view>

  </scroll-view>


小黎:

没有复现,亲测可以,怀疑是机子的问题

-EOF-

AI助手支持GPT4.0