📜  getBoundingClientRect - Javascript 代码示例

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

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

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