解决办法(还未测试):

只需要在中间部分外层div添加css样式position:fixed;top:50px; bottom:50px;overflow:scroll;就可以实现效果,无需插件。可拷贝下面代码运行。
<!DOCTYPE html>

<html lang="zh_cmn">

<head>

<meta charset=utf-8 />

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />

<title></title>

<style>

.head,.foot{position:fixed;left:0;height:38px;line-height:38px;width:100%;}

.head{top:0;}

.foot{bottom:0;}

.main{position:fixed;top:38px;bottom:38px;width:100%;overflow:scroll;}

</style>

</head>

<body>

<header class="head">顶部固定区域</header>

<article class="main"  id="wrapper">

<div>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<p>当内容欲出隐藏时,灰色区域可上下拖动</p>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

<input type="text" value="" class="inputtext"> <br>

content <br>

content <br>

content <br>

content <br>

content <br>

content <br>

content <br>

content <br>

content <br>

</div>

</article>

<footer class="foot">底部固定区域</footer>

</body>

</html>
当小键盘出现时头部、底部自动跳到页面最顶端、最底端。键盘隐藏时又会固定在头部,底部

最新文章

  1. BIAWGN信道
  2. 类库间无项目引用时,在编译时拷贝DLL
  3. Android 使用Font Awesome 显示文字图标
  4. Atitit Server Side Include &#160;ssi服务端包含规范&#160;csi &#160;esi
  5. [转][C/C++] 怎样不用中间变量temp 实现两个数交换
  6. Ajax优缺点
  7. SQL server 表中如何创建索引?
  8. General: Know How to Use InetAddress
  9. [DEncrypt] Encrypt--加密/解密/MD5加密 (转载)
  10. winform 窗体最大化 分类: WinForm 2014-07-17 15:57 215人阅读 评论(0) 收藏
  11. 配置Nginx代理服务器
  12. Java Thread.join的作用和原理
  13. Java HttpClient4.5.2发送post请求示例
  14. 函数append()和html()的区别
  15. 英语口语练习系列-C23-运动
  16. Python String Formatting Best Practices
  17. [BJWC2011]最小三角形(分治+最近点对)
  18. 使用Ajax的Time实现倒计时功能
  19. Oracle EBS INV 创建物料搬运单
  20. 并查集:POJ No1703 Find them, Catch them

热门文章

  1. JAVA程序员_常用英语
  2. 设置Linux打开文件句柄/proc/sys/fs/file-max和ulimit -n的区别
  3. [原]Jenkins(十)---jenkins注册管理员admin并赋所有权限给admin
  4. Ajax框架---dwr的用法
  5. CCPC-Wannafly Winter Camp Day7 D---二次函数【数论】【构造】
  6. F#周报2018年第48期
  7. POJ 3278 Catch That Cow[BFS+队列+剪枝]
  8. MyBatis中choose when正确写法
  9. [模式匹配] AC 自动机 模式匹配
  10. Mysql undo redo 总结