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;

        }

相关文章: