我想知道如何获得HTML元素的X和Y位置,例如img和divJavaScript.
img
div
html javascript css dom position
css ×1
dom ×1
html ×1
javascript ×1
position ×1