Scroll / Jump to id without jQuery
时间:2014-02-27 09:17:49
收藏:0
阅读:399
<scripttype="text/javascript">
function scroll(element){
var ele = document.getElementById(element); window.scrollTo(ele.offsetLeft,ele.offsetTop);
}
</script>
Scroll / Jump to id without jQuery,布布扣,bubuko.com
原文:http://www.cnblogs.com/lingzhao/p/3569045.html
评论(0)
