搜索
您的当前位置:首页正文

JS获取隐藏元素style

来源:二三娱乐

在做collapse组件时,用到这个功能,结果答案基本一致。

思路基本如下:

  • clone element
  • append to body
  • show the hide element
  • get the property
  • remove the clone element
Top