Element's coordinates relative to its parent

前端 未结 0 1012
天涯浪人
天涯浪人 2021-02-11 20:14

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 <

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