解决css3兼容各个浏览器的前缀

时间:2020-12-07 19:45:00

1、emmet生成

2、用编辑器插件: 如sublime text 的  autoprefixer自动添加兼容前缀 基于nodejs 需要安装nodejs (这个效果不佳,本人测试貌似只添加-webkit-的前缀 - -)

3、用grunt插件 grunt-autoprefixer 参考链接:http://www.w3cplus.com/css3/autoprefixer-css-vender-prefixes.html

4、引入js<script src=”http://leaverou.github.com/prefixfree/prefixfree.min.js”></script>