I found that using the element's clientWidth to get its actual width will return 0 when the element is not on the screen or not rendered.
確定! 回上一頁