Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
getComputedStyle(function)
if(typeof getComputedStyle === "undefined") {
var getComputedStyle = function(targetElm){
return document.defaultView.getComputedStyle(targetElm, "") || targetElm.currentStyle;
};
}
※ネイティブの getComputedStyle は擬似要素の指定も可能だが、この関数では不可。
## usage ##
var bodyStyles = getComputedStyle(document.body);
console.log(bodyStyles["color"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.