要素の座標を取得する
getBoundingClientRect
を使う
code:js
domRect = element.getBoundingClientRect();
domRectの属性
bottom
height
left
right
top
width
x
y
#JavaScript