var ele = document.getElementById("eleid");
1:ele.style.元素名称

2:var style = window.getComputedStyle ? window.getComputedStyle(ele, null) : ele.currentStyle;   style.元素名称;

https://www.zhangxinxu.com/wordpress/2012/05/getcomputedstyle-js-getpropertyvalue-currentstyle/

相关文章:

  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-11-14
  • 2021-10-23
  • 2021-12-06
  • 2022-12-23
相关资源
相似解决方案