html52.com
我爱小程序-开发者交流社区

textarea使用auto-height,在真机显示时下方为何出现大量空白?

<view class="section--text">资讯:</view>

<textarea

class="section--elem" name="title" maxlength="600" auto-height="{{true}}" value="{{title}}" placeholder="前24个字元将纳入标题使用 | 支持多行" placeholder-style="color: #d3d3d4" bindblur="bindTextAreaBlur" bindinput="bindKeyInput"></textarea>

</view>


bindTextAreaBlur: function (e) {

this.setData({

title: e.detail.value

})

},



bindKeyInput: function(e) {

let str = e.detail.value;

this.setData({

title: str

});

},

},

网友回复

是柿子啊:

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

仙༊:

设置下min-height

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付