1 HTMLElement.prototype.__defineGetter__("currentStyle", function () {
2     return this.ownerDocument.defaultView.getComputedStyle(this, null);
3 });

 

example:

1 document.body.currentStyle['width']

 

相关文章:

  • 2021-11-30
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
相关资源
相似解决方案