function getStyle(node, property){

            
if (node.style[property]) {
                
return node.style[property];

            } 
            
else if (node.currentStyle) {
                
return node.currentStyle[property];
            } 
            
else if (document.defaultView && document.defaultView.getComputedStyle) {
                
var style = document.defaultView.getComputedStyle(node, null);
                
return style.getPropertyValue(property);
            }

            
return null;

        }

相关文章:

  • 2021-12-27
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2021-07-26
  • 2021-07-08
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案