The style attribute tells you what the style was set to. To get the actual current size, use getBoundingClientRect(): console.log(mapWidth.
確定! 回上一頁