css预编译 sass

1.sass

   安装: 先安装ruby

 然后 在Start Command Prompt with Ruby 里运行gem install sass

   参考:http://www.w3cplus.com/sassguide/install.html

 使用:

 语法:http://www.w3cplus.com/sassguide/syntax.html

 编译:http://www.w3cplus.com/sassguide/compile.html

        http://www.ruanyifeng.com/blog/2012/06/sass.html

搭配compass使用:http://www.ruanyifeng.com/blog/2012/11/compass.html

使用: compass create myproject 创建项目

        compass watch                 自动编译命令

compass 常用模块:

   reset

   css3

   layout

   typography

   utilities

引用模块: @import  "compass/reset"

 

 

  

 

posted @ 2016-08-09 16:54  奋力向前CO  阅读(150)  评论(0编辑  收藏  举报