📅  最后修改于: 2022-03-11 15:04:22.728000             🧑  作者: Mango
document.getElementById("id").getBoundingClientRect().width
//or
document.getElementById("id").style.width
//document.getElementById("id").getBoundingClientRect() - will return all css properties of the emelemnt