Ios 防止Phonegap滑动(iFrames)
我有个问题。 我在Dreamweaver CS 5.5中编写了一个小应用程序,使用Phonegap的SKD将其导出到iOS应用程序。 但问题是:当用户用手指滑动时,如何防止屏幕上下移动?我在Phonegap wiki上读到,可以使用DIV标记。但这对我不起作用,因为我使用了一个引用框架的index.html。我不使用身体。如何防止用户上下滑动屏幕 index.html:Ios 防止Phonegap滑动(iFrames),ios,Ios,我有个问题。 我在Dreamweaver CS 5.5中编写了一个小应用程序,使用Phonegap的SKD将其导出到iOS应用程序。 但问题是:当用户用手指滑动时,如何防止屏幕上下移动?我在Phonegap wiki上读到,可以使用DIV标记。但这对我不起作用,因为我使用了一个引用框架的index.html。我不使用身体。如何防止用户上下滑动屏幕 index.html: <html> <frameset cols="625,*" border=0 framespacing
<html>
<frameset cols="625,*" border=0 framespacing=0 frameborder="0">
<frame src="frames/navbar.htm" scrolling=auto name="main">
<frame src="frames/blank.htm" scrolling=auto>
</frameset>
</frameset>
</frameset>
</html>
您是否已签出此有用的网页?
如果您希望iScroll下的内容能够快速滚动,您可能需要签出iScroll 此外,禁用“touchmove”事件将阻止用户进行任何类型的移动。 document.addEventListener('touchmove',函数(事件){event.preventDefault()}) iOS 5为我们提供了对固定元素和webkit溢出滚动的支持:触摸;但是这些并不能产生最好的效果,有时也不能像预期的那样起作用