English 中文(简体)
在iPad 上滚动时操纵 DOM
原标题:Manipulating the DOM during scroll on iPad

我网站上有一个粘贴的导航栏, 需要随着用户卷轴的回滚而恢复。 我使用 < code> scroll () 功能完成这项工作 。

但是在iPad上,它可以运行到卷轴完成, 使栏卡粘贴到页面本身一秒钟, 然后又恢复原样。

有什么我可以帮忙的吗?目前有没有让 iPad 手柄滚动事件 和其他浏览器一样?

最佳回答

目前版本的iOS < a href=" https://stackoverflow.com/ questions/4889601/cs-position-fixed-infixed-into-ipad-iphone" > > 支持 < a > position: fixed 属性在 CSS 中。 当然, 然后您会离开 Android 。

使用 < a href=> "http://cubiq.org/iscroll-4" rel="不跟随 noreferrer">iScroll - 它旨在考虑各种移动浏览器的怪异。

问题回答

暂无回答




相关问题
how to detect Android ListView Scrolling stopped?

I m trying to do something after scrolling stopped.So, I tried using OnScrollListener#onScrollStateChanged(SCROLL_STATE_IDLE) to detect when the scrolling stopped(either TOUCH_SCROLL or FLING)(at 1.5 ...

jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

Scrolling to the bottom of a div

As part of an ajax chat room (using prototype framework) I am working on I scroll the user to the bottom each time a message is added using the below js. However if the user has scrolled up and the ...

Displaying news with javascript

I keep coming up against this issue. Displaying news on a website. And I d like to come up with a solution to use like a template, something I can just drop on a site easily. The solution I keep ...

UITextview content moves up when textview is selected

I am pretty new to this iPhone dev thing but so far I have built a pretty good app but I have stumbled into this problem that for the life of me I cannot seem to solve. Basically the app is a chat ...

热门标签