getComputedStyle()
IE9 이상
var style = window.getComputedStyle(Element);
console.log(style.width);
console.log(style.backgrondColor);
IE9 이하
window.onload = function () {
if (!window.getComputedStyle) {
window.getComputedStyle = function(element) {
return element.currentStyle;
}
}
}