收藏
回答

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

});

},


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

3 个回答

  • A notorious liar(小花猫)
    A notorious liar(小花猫)
    2019-09-04

    你试试height:50vh;用vh不要用rpx或者%

    2019-09-04
    有用
    回复
  • 睡前原谅一切
    睡前原谅一切
    2019-08-15

    设置下min-height

    2019-08-15
    有用
    回复 2
    • 2019-08-19
      同样的问题,切换tab回来自动撑高一个页面,写了min-height没用
      2019-08-19
      回复
    • 睡前原谅一切
      睡前原谅一切
      2019-08-19回复
      那你还是写个代码片段吧
      2019-08-19
      回复
  • 是小白啊
    是小白啊
    2019-08-15

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

    2019-08-15
    有用
    回复 1
    • 林平
      林平
      2019-08-28
      IphoneX、微信version 7.0.6、iOS12.4.1、很抱歉不会写片段代码...
      2019-08-28
      回复
登录 后发表内容
问题标签