热门搜索 :
考研考公
您的当前位置:首页正文

JS获取隐藏元素style

来源:东饰资讯网

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

思路基本如下:

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