css 变量

http://www.ruanyifeng.com/blog/2017/05/css-variables.html

http://mp.weixin.qq.com/s/sygT8UNvxlLc5xrDg0XfgA

 

postcss是一个css编译工具,node、gulp、webpack下都有对应的插件可以使用。postcss下有多个功能,如

autoprefixer:为兼容性而自动添加前缀

cssnext:可以把未被支持的css语法转为兼容的css,如浏览器不兼容css变量,使用这个工具转换后,相当于把css中变量都替换成对应的值了

posted @ 2017-10-11 20:48  HelloHello233  阅读(125)  评论(0编辑  收藏  举报