Element destination
This question already has an answer here:
Try this:
window.onload = function() {
console.log(document.getElementById("id1").offsetTop);
};
where id1
is the id of the textbox you need to triangulate.
上一篇: 移动时如何知道元素的位置
下一篇: 元素目的地