📌  相关文章
📜  js如何获取元素csswidth - Javascript代码示例

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

代码示例1
document.getElementById("id").getBoundingClientRect().width
//or
document.getElementById("id").style.width
//document.getElementById("id").getBoundingClientRect() - will return all css properties of the emelemnt