|
本帖最后由 毛腿 于 2014-12-4 00:45 编辑
实现 丝般顺滑的 页面滚动
只适用于IOS 安卓无效 ,很简单 改造 body 和 html 的样式
body, html { height: 100%;background-color:#fff; }
.IOSscroll { position : relative; overflow-y:auto; -webkit-overflow-scrolling:touch;}
------------------------------------------------------------------------
FixIOSScroll: function () {
if (api.systemType == "ios") {
$("body,html").addClass("IOSscroll");
}
}
在 apiready 中 调用 FixIOSScroll() 方法
|
|