JavaScript如何获取div的尺寸var div1width = document.getElementById("div1").offsetWidth宽var div1height = document.getElementById("2023-04-22JavaScript260