Created
December 11, 2012 11:47
-
-
Save pocotan001/4257983 to your computer and use it in GitHub Desktop.
ベンダープレフィックス調べる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var prefix = !getComputedStyle ? null : (function() { | |
var prefix = null, i = 0, | |
style = getComputedStyle(document.documentElement, null); | |
while (style[i++]) { | |
if (style[i].charAt(0) === '-') { | |
prefix = style[i].split('-')[1]; | |
break; | |
} | |
} | |
return prefix; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment