摘要: 来源:https://www.cnblogs.com/mting/p/3177486.html 1、获取绝对位置 $("#id").offset().left; $("#id").offset().top; 2、获取相对父元素的位置 1)父元素必须设置position:relative; 2) $( 阅读全文
posted @ 2020-04-28 11:24 前端探索者1 阅读(1466) 评论(0) 推荐(0) 编辑