探索javascript----获得节点计算后样式

节点计算后样式是一个属性与属性值的值对对象;

IE:    node.currentStyle;

非IE: window.getComputedStyle(node,null);

兼容方式:

      function getCurrentStyle(node){

       var style=[];

       node.currentStyle?style=node.currentStyle:window.getComputedStyle(node,null);

       return style;      

}

原文地址:https://www.cnblogs.com/webkey-wzy/p/4052800.html