比如我现在 a.html 的时候,我想跳转到 b.html ,并且是 b.html 的某一个位置,用 <a href=>,
a.html里:
b.html里加一个锚记:
JQuery方法
$("html,body").animate({scrollTop:$("#${nameMao}").offset().top},1000);
本文共 169 字,大约阅读时间需要 1 分钟。
比如我现在 a.html 的时候,我想跳转到 b.html ,并且是 b.html 的某一个位置,用 <a href=>,
a.html里:
b.html里加一个锚记:
JQuery方法
$("html,body").animate({scrollTop:$("#${nameMao}").offset().top},1000);
转载地址:http://ngivl.baihongyu.com/