1***@qq.com
1***@qq.com
  • 发布:2020-09-24 14:01
  • 更新:2022-08-16 17:52
  • 阅读:6852

uni-app app端当弹出键盘时遮盖住输入框

分类:uni-app
<view class="fixed-bottom flex align-center border-top bg-white" style="height: 100rpx;">  
            <input type="text" v-model="content"  
             class="uni-input flex-1 rounded bg-light ml-2 py-2 px-1"   
             :adjust-position="false" placeholder="文明发言"/>  

            <view class="iconfont icon-fa_bu flex align-center justify-center   
            animate__animated" hover-class="animate__pulse text-main" style="width: 100rpx; font-size: 50rpx;" @click="submit"></view>  
        </view>
2020-09-24 14:01 负责人:无 分享
已邀请:
深海智行

深海智行 - 专注前端培训

:adjust-position="false" 不是你配置的吗

  • 1***@qq.com (作者)

    您好,这个配置是我配置的。如果把 adjust-position 设为ture 当键盘弹出时就会把页面的内容给顶上去

    2020-09-27 11:06

  • 深海智行

    回复 1***@qq.com: 没毛病

    2020-09-27 15:23

  • 1***@qq.com (作者)

    回复 深海智行: 您是否也遇到过这样的问题呀?

    2020-09-28 08:55

  • 深海智行

    回复 1***@qq.com: 谁都遇到啊,本来就是这样,这是正常的啊

    2020-09-28 11:21

7***@qq.com

7***@qq.com

楼主解决了吗

request宇航

request宇航

css样式设置为position: fixed;

  • 1***@qq.com

    是不是解决了?最后完整的代码是什么样哈,谢谢 !

    2021-10-01 23:25

  • 2***@qq.com

    设置这个雀氏可以解决问题,但是在iphone8上真机测试发现键盘调出会闪退

    2021-10-26 15:20

1***@qq.com

1***@qq.com

是不是解决了?最后完整的代码是什么样哈,谢谢 !

  • 1***@qq.com

    在input框加上这个属性就好了cursor-spacing="300"

    2022-08-16 17:53

要回复问题请先登录注册