Element's coordinates relative to its parent

前端 未结 0 1507

The method el.getBoundingClientRect() gives a result relative to the viewport\'s top-left corner (0,0), not relative to an element\'s parent, whereas <

相关标签:
回答
  • 消灭零回复
提交回复
热议问题