html5中的ipad滚动条
我对 iPad 的 HTML5 开发非常陌生。我正在使用 HTML5 创建我的第一个 iPad 应用程序。一切都完成了,除了我面临一个问题。问题描述是。
有 1 个垂直溢出 div。该页面在计算机浏览器中可以正常查看,但在 ipad 中查看同一页面时,溢出部分被截断,并且看起来没有溢出内容。
请让我知道正确的做法。
I am very new to HTML5 development for ipad. I am creating my first application for ipad using HTML5. Everything is done except I am facing one problem. Problem description is.
There is one vertical overflowing div. This page is viewed properly in computer's browser but when the same page is viewed in ipad the overflowing section is cutoff and it appears that there is no overflowing content.
Please let me know the proper way of doing it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 iPad 上,使用
overflow
滚动条的可滚动div
不会出现在该 div 上。滚动的唯一方法是使用两根手指滑动。Joe 说可滚动性还没有准备好使用,所以我不会在生产系统中实现它。
为此,您还有其他选择,例如:
http://cubiq.org/scrolling-div-on-iphone-ipod-touch
On the iPad scrollable
div
's usingoverflow
scrollbars will not appear on that div. The only way to scroll is using a two finger swipe.Joe says that Scrollability is not yet ready to be used, so I wouldn't implement it in a production system.
To do this you have other options like:
http://cubiq.org/scrolling-div-on-iphone-ipod-touch
您希望在 HTML5 应用程序中在 iPad 上实现类似本机的滚动吗?您可能想查看 Joe Hewitt 的一个名为 Scrollability 的项目: http://joehewitt.github.com/scrollability/
You want native-like scrolling on the iPad in your HTML5 application? You might want to check out a project called Scrollability by Joe Hewitt: http://joehewitt.github.com/scrollability/
查看 https://github.com/appmobi/aux_web (aUX_webScroll) 。我是作者,所以如果您有任何疑问,请告诉我。
iOS5 有新的属性允许在 div 上滚动,但是你会发现当你在 webview 中使用它时,整个 webview 也会移动,令人惊讶的是,并不是每个人都升级操作系统。
Check out https://github.com/appmobi/aux_web (aUX_webScroll) . I'm the author, so if you have any questions, let me know.
iOS5 has the new property to allow scrolling on divs, but you'll find out that when you use it in a webview, the whole webview moves too and surprisingly, not everyone upgrades the OS.
我写了一篇关于 iOS 5 中新功能的文章。该主题也包含在 -webkit-overflow-scrolling 部分: http://samuli.hakoniemi.net/ios-5-and-new-features-for-web-developers/#webkit-overflow-scrolling
I wrote an article about new features in iOS 5. Also this topic is covered on section -webkit-overflow-scrolling: http://samuli.hakoniemi.net/ios-5-and-new-features-for-web-developers/#webkit-overflow-scrolling