Created
June 9, 2015 02:28
-
-
Save noyobo/b2c8a23331e0a9fd637d to your computer and use it in GitHub Desktop.
get browser style Prefix
This file contains 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 styles = window.getComputedStyle(document.documentElement, ''); | |
var pre = (Array.prototype.slice.call(styles).join('').match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o']) | |
)[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment