先随便写一个demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
*{margin:0;padding:0;}
.a{background-color:red;width:100%;height:3000px;}
.b{position:absolute;top:0;width:100%;height:2000px;background-color:blue;}
</style>
</head>
<body>
<div class="a"></div>
<div class="b"></div>
</html>
b是页面弹出的浮层,那么如何控制滑动屏幕的时候只滑动b,而a不滑动?
http://segmentfault.com/q/1010000002942948