window.getComputedStyle(dom, null)['width'];
https://blog.csdn.net/weixin_46112225/article/details/121940646