大猴子会跳舞
大猴子会跳舞
  • 发布:2017-04-06 17:53
  • 更新:2017-12-14 15:31
  • 阅读:4101

app开发软键盘弹出绝对定位在底部的按钮被顶起来了怎么破

分类:MUI

试过用onfocus(zindex='-1') onblur('zIndex=10') 但是关闭软键盘一般都点的键盘右上角的向下箭头 onblur不起作用 按钮不出来 onresize的时候zindex='-1'应该怎么设置让按钮重新出来

2017-04-06 17:53 负责人:无 分享
已邀请:
大猴子会跳舞

大猴子会跳舞 (作者)

upupup

9***@qq.com

9***@qq.com

解决问题了吗?求分享啊

liyoungs

liyoungs - 糖糖好甜

解决没有,求分享

王者地带

王者地带 - 5+混合APP开发教程网 | http://www.html5-app.com | 咨询QQ: 2564034335

  //可以试下,下面的方法  

            var heigh=plus.display.resolutionHeight;  //获得手机屏幕高度   
             window.addEventListener('resize', function()     //resize 件事监听软盘打开或关闭时的动作,  
              {  
                    if(heigh==plus.display.resolutionHeight)  //当软盘关闭时,屏幕的高等于原来的高  
                     {  
                                         //当软盘关闭时,把隐藏的元素,显示出来  
                    document.getElementById("footers").style.display='block';  
                     }  
                     else  
                     {  
                                       // 当软盘弹出时,手机屏幕会被压缩,此时屏幕高度小于之前的, 隐藏被顶起的元素  
                      document.getElementById("footers").style.display='none';    
                     }  
             }, false);  
n***@gmail.com
  • liyoungs

    底部有灰框占据了原来的底部按钮?

    2017-07-07 08:41

liyoungs

liyoungs - 糖糖好甜

mui.plusReady(function () {
$('#TextArea').focus(function () {
var self = plus.webview.currentWebview().opener();
self.evalJS('document.getElementById("bottom").style.display="none"');
})
})

大猴子会跳舞

大猴子会跳舞 (作者)

var flag = true;
window.onresize = function() {
if(flag) {
footer.style.display = "none";
content.style.height = wrap.offsetHeight - header.offsetHeight + 'px';
flag = false;
} else {
footer.style.display = "flex";
content.style.height = wrap.offsetHeight - header.offsetHeight - footer.offsetHeight + 'px';
flag = true;
}
}

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