js怎么获取元素的宽高javascript获取元素的高度: var obj = document.getElementById("test")alert(obj.height + "n" + obj.width) 22023-03-07JavaScript460