input 设置 adjust-position问题
发布于 6 年前 作者 hpan 6381 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

框中的留白是键盘向上弹起造成的

  • 预期表现

键盘向上弹起,input框应该紧贴键盘最上部,而不是多出来一部分空白

  • 复现路径
  • 提供一个最简复现 Demo

<template>

<input

      class=“news”

      type=“text”

      cursor-spacing=“65”

adjust-position=“true”

      confirm-type=“send”

      bindconfirm=“sendMessage”

      placeholder=“输入新消息”

/>

</template>

css

.news {

    width: 100%;

  height: 100rpx;

  border-top: 1px solid #CFCFCF;

  position: fixed;

  bottom: 0;

  right: 0;

  z-index: 1;

  background-color: #FFFFFF;

}

1 回复

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

回到顶部