iPhone上的可滚动div不使用2个手指? [英] Scrollable div on iPhone without using 2 fingers?
问题描述
我的iPhone应用程序中嵌入了一个UIWebView,我希望始终在页面上保持一个锁定的页眉和页脚DIV,并带有可滚动的中心DIV。
I've got a UIWebView embedded in my iPhone app, and I'd like to keep a locked header and footer DIV on the page at all times, with a scrollable center DIV.
我知道我可以使用UIView控件的页眉/页脚来做到这一点,但我希望页眉和页脚是HTML div,作为纯HTML / JS / CSS解决方案将更容易移植到Android / PalmPre / AdobeAir,这将很快在我的待办事项清单上。
I know that I could do this using a header/footer that are UIView controls, but I want the header and footer to be HTML divs, as a pure HTML/JS/CSS solution will be easier to port to Android/PalmPre/AdobeAir, which is going to be on my todo list relatively soon.
我可以使用像这里提到的一个:
I can do this using techniques like the one mentioned here:
但这要求用户使用2个手指滚动div,这对我来说并不令人满意。 ..
But this requires that the user use 2 fingers to scroll the div, which is not satisfactory to me...
有关如何执行此操作的任何建议吗?
Any suggestions on how to do this?
谢谢,
Brad
推荐答案
我发现有人为此实现了可重复使用的解决方案,带有页眉和页脚:
I found someone that implemented a reusable solution for this, with a header and a footer:
这篇关于iPhone上的可滚动div不使用2个手指?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!