Framework7如何限制body不能拖出?

How to limit the body can not be drag out in Framework7?

我正在使用 Framework7 进行混合开发。

在我的代码中:

<!DOCTYPE html>
<html>
  <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>My App</title>
<!-- Path to Framework7 Library CSS-->
<link rel="stylesheet" href="dist/css/framework7.ios.min.css">
<!-- Path to your custom app styles-->
<link rel="stylesheet" href="css/my-app.css">
</head>
<body>
....
</body>
</html>

在我的模拟器上的效果:

我要body是固定的,不能拖动,怎么固定位置,不能拖动不能让整个视图上下移动?

试试把这个加给你config.xml

<preference name="DisallowOverscroll" value="true" />