//滚动到指定位置
that.$scope.$$postDigest(function(){
setTimeout(function(){
if(that.$scope.before_msg_id){
vargomsgRowTop =$("#msgContent #msg_id_"+ that.$scope.before_msg_id).offset().top-40;
document.body.scrollTop= gomsgRowTop;
}
},200);
})
//滚动到指定位置
that.$scope.$$postDigest(function(){
setTimeout(function(){
if(that.$scope.before_msg_id){
vargomsgRowTop =$("#msgContent #msg_id_"+ that.$scope.before_msg_id).offset().top-40;
document.body.scrollTop= gomsgRowTop;
}
},200);
})
本文标题:滚动到指定div位置
本文链接:https://www.haomeiwen.com/subject/cxfazttx.html
网友评论