How to grab the x, y position of html elements with javascript

后端 未结 3 2126
臣服心动
臣服心动 2021-02-15 17:08

I have in my html document several div elements with certain css class and want to get x, y position of those elements, thanks in advance.

3条回答
  •  北海茫月
    2021-02-15 17:43

    If I understand, you want to do this http://www.quirksmode.org/js/findpos.html

提交回复
热议问题