本文介绍了在ipad网络应用程序中禁用垂直弹跳效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一种方法可以禁用滚动div中的反弹效果。
到目前为止,我已经尝试过这些东西,但没有工作。请帮助!
和
http://www.iphonedevsdk.com/forum/iphone-sdk- / p>
这是我做的 -
#scrollableDiv {
position:fixed;
top:50px;
width:300px;
height:500px;
word-wrap:break-word;
overflow-y:scroll;
}
document.getElementById(scrollableDiv)。innerHTML = longText;
document.getElementById(scrollableDiv)。scrollTop = 0;
Is there a way to disable the bounce effect in a scrolling div?
So far I have tried these things but none worked. Please help!
How to disable vertical bounce/scroll on iPhone in a mobile web application
Can't disable bounce with UIScrollView and pagingEnabled=YES
ipad safari: disable scrolling, and bounce effect?
Disable UITableView vertical bounces when scrolling
And
Thanks!
解决方案
I know this may not be the best way but it works.
Here is what I did -
#scrollableDiv {
position:fixed;
top:50px;
width:300px;
height:500px;
word-wrap: break-word;
overflow-y: scroll;
}
document.getElementById("scrollableDiv").innerHTML = longText;
document.getElementById("scrollableDiv").scrollTop = 0;
这篇关于在ipad网络应用程序中禁用垂直弹跳效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!