如何停止UIWebView在phonegap 3.0中垂直弹跳 [英] How to stop UIWebView bouncing vertically in phonegap 3.0
本文介绍了如何停止UIWebView在phonegap 3.0中垂直弹跳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
已尝试过此论坛和其他论坛的许多建议,包括将DisallowOverscroll设置为true。这是破碎在phonegap 3.0的任何机会?
Have tried many suggestions from this and other forums, including setting "DisallowOverscroll" to "true". Is this broken in phonegap 3.0 by any chance ?
推荐答案
在 config.xml中进行某些更改
,
如果您在Android中使用它,请使用
If you are using it for Android, then use
<preference name="disallowOverscroll" value="true" />
<preference name="webviewbounce" value="false" />
对于IOS,使用
<preference name="DisallowOverscroll" value="true" />
<preference name="webviewbounce" value="false" />
希望这有助于你。
strong> EDIT
EDIT
cordova build
c> config.xml 文件,以便更改会影响到您的项目。上述步骤只有在您执行 cordova构建之后才能解决您的问题
Do a cordova build
after you have made changes in the config.xml
file so that the changes affect to your project. The above steps would solve your problem only after you do a cordova build
这篇关于如何停止UIWebView在phonegap 3.0中垂直弹跳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文