vue获取页面dom元素样式的方法

window.getComputedStyle(dom, null)['width'];

https://blog.csdn.net/weixin_46112225/article/details/121940646

posted @ 2022-06-23 15:25  前端路远且长  阅读(179)  评论(0编辑  收藏  举报