📜  getboundingclientrect() javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.502000             🧑  作者: Mango

代码示例2
// Return the size of an element and its position relative to the viewport:

const rect = obj.getBoundingClientRect();
console.log(rect)