gpt4 book ai didi

html - Framework7如何限制body不能拖出?

转载 作者:行者123 更新时间:2023-11-28 04:40:09 25 4
gpt4 key购买 nike

我正在使用 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是固定的,不能拖动,怎么固定位置,拖动不能不能让整个view上下移动?

最佳答案

尝试将此添加到您的 config.xml

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

关于html - Framework7如何限制body不能拖出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41244593/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com