收藏
回答

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

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

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

回答关注问题邀请回答
收藏

4 个回答

  • Demons
    Demons
    2022-03-04

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

    2022-03-04
    有用
    回复
  • 行者
    行者
    2022-03-04


      <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>


    2022-03-04
    有用
    回复
  • 青团社
    青团社
    2022-03-04

    无法复现。

    https://developers.weixin.qq.com/s/UIxQtvm879xo

    2022-03-04
    有用
    回复
  • 拾柒
    拾柒
    2022-03-04

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

    2022-03-04
    有用
    回复
登录 后发表内容