【发布时间】:2012-09-02 10:54:33
【问题描述】:
我使用了 jquery 平滑滚动效果,没什么花哨的..只是 jQuery...它似乎不适用于 iPad 或 iPhone 或任何其他平板电脑..网址在这里:http://teothemes.com/wp/viewpoint/
这是我用于 jquery 平滑滚动的代码:
jQuery(document).ready(function() {
jQuery("a[href*=#]").on('click', function() {
if(parseInt(jQuery(this.hash).offset().top) !== parseInt(jQuery(window).scrollTop()))
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 1500);
});
});
如果有人有任何想法,非常感谢。
【问题讨论】:
-
您好,您找到解决方案了吗?