jQuery scroll iframe on mobile using animate

I have an iframe containing a web page that uses jQuery.

To scroll to a specific position of the iframed page (the .js is included in the iframed page, non in the container page) I use:

$('html,body').animate({scrollTop: POSITION}, DURATION);

I tested that the scroll works on latest desktop Firefox, Explorer, Safari and Chrome but on mobile iPad and Android native browser fails (on Firefox mobile it works).

Anyone has some suggestion?

链接地址: http://www.djcxy.com/p/89970.html

上一篇: 在手机浏览器中的jquery帖子不起作用

下一篇: jQuery使用动画在移动设备上滚动iframe