//--------------------------------------------------- // LESS Prefixer //--------------------------------------------------- // // All of the CSS3 fun, none of the prefixes! // // As a rule, you can use the CSS properties you // would expect just by…
项目中使用动画效果在IE9下不支持,所以写了个判断浏览器是否支持动画的函数,进而扩展到下面判断浏览器支持任一特定CSS3属性的函数. function supportAnimation(){ var domPrefixes = 'webkit Moz o ms Khtml'.split(' '), len = domPrefixes.length, htmlStyle = document.documentElement.style; if(htmlStyle.animationName !==…