摘要: 1.DOM节点 (1)node.offsetParent最近的有定位属性的祖先节点 如果祖先节点都没有定位,那么默认为body (2)node.offsetLeft/node.offsetTop 距离最近的有定位属性的祖先节点的距离 node.offsetLeft左外边框到定位父级的左内边框的距离 阅读全文
posted @ 2017-12-11 15:32 carol72 阅读(149) 评论(6) 推荐(0) 编辑