zoukankan      html  css  js  c++  java
  • Jq 手机端输入框防止底部菜单被小键盘弹起

    var winHeight = $(window).height();  //获取当前页面高度
    $(window).resize(function () {
      var thisHeight = $(this).height();
      if ( winHeight - thisHeight > 140 ) {
        //键盘弹出
        $('.footer').css('position','static');
      } else {
        //键盘收起
        $('.footer').css({'position':'fixed','bottom':'0'});
    
      }
    })
    ——现在的努力,只为小时候吹过的牛逼! ——
  • 相关阅读:
    SRM482
    SRM481
    SRM480
    SRM479
    SRM478
    vue-cli 3 is not a modual err
    .vimrc
    css3 导入字体
    class []的用法
    RK61 Keyboard Use
  • 原文地址:https://www.cnblogs.com/zxf100/p/15749509.html
Copyright © 2011-2022 走看看