用Javascript获取页面元素的位置
document.body.scrollTop与document.documentElement.scrollTop兼容
【JS】定位
原文:http://www.cnblogs.com/jzm17173/p/3540880.html