可苦可乐
可苦可乐
  • 发布:2017-04-10 14:56
  • 更新:2017-04-13 16:56
  • 阅读:1725

mui-bar-nav 如何不被安卓系统软键盘顶起来?

分类:MUI
mui

1.网上查到两个解决方案,使用“z-index: -1”在mui样式下不管用。

2.在plusready中设置
document.getElementById('bottomx').style.top = (plus.display.resolutionHeight - 50) + "px";
时,则需要将子webview的bottom设置为0,否则子webview与软键盘之间还是留有50px的空白。但bottom为0时则子页面中下面的内容会被nav遮挡。

各位有没有更好的解决方案?

2017-04-10 14:56 负责人:无 分享
已邀请:
Trust
  • 可苦可乐 (作者)

    子webview的bottom不为零时,这个空白区域还是会被软键盘顶上来。

    2017-04-11 09:00

可苦可乐

可苦可乐 (作者)

子webview的bottom不为零时,这个空白区域还是会被软键盘顶上来。

。。。

  • JoBoJun

    可解决了?

    2019-05-16 16:35

2***@qq.com

2***@qq.com

用css3 可以做到 不需要DCloud_客服_Trust的方法

bottomx{top:calc(100vh - 50px)}

该问题目前已经被锁定, 无法添加新回复