在jquery中获取到窗口的距离用offset()方法

而获取到父级的距离用position()方法,用法与offset一样

posted on 2017-03-03 17:33  myHeartOTW  阅读(253)  评论(0编辑  收藏  举报