zoukankan      html  css  js  c++  java
  • 4、SASS

    Sass支持标准的css多行注释 /* */ ,以及单行注释 / / 

    • /* */ 会出现在编译后的css文件中
    • / /    不会出现在编译后的css文件

    例如:

    /* This comment is
     * several lines long.
     * since it uses the CSS comment syntax,
     * it will appear in the CSS output. */
    body { color: black; }
    
    // These comments are only one line long each.
    // They won't appear in the CSS output,
    // since they use the single-line comment syntax.
    a { color: green; }

    编译为:

    /* This comment is
     * several lines long.
     * since it uses the CSS comment syntax,
     * it will appear in the CSS output. */
    body {
      color: black; 
    }
    
    a {
      color: green; 
    }

    插值语句 #(变量) ============  #($version:“1.2.3”);可以在多行注释中输出变量值。例如:

    $version: "1.2.3";
    /* This CSS is generated by My Snazzy Framework version #{$version}. */

    编译为:

    /* This CSS is generated by My Snazzy Framework version 1.2.3. */

    下一篇文章我们介绍 《 SASS - SassScript (扩展的类似脚本语言的功能)》

  • 相关阅读:
    软件测试homework2
    软件测试homework1
    ubuntu14 安装QUME+xv6
    判断两线段是否相交 模板
    并查集 HDU1558
    并查集 HDU1272
    并查集 HDU1232
    数据结构之单向链表 UVa11988
    Java大数 字符串处理 HDU2100
    Java大数中的小数 HDU1753
  • 原文地址:https://www.cnblogs.com/wangweizhang/p/11677448.html
Copyright © 2011-2022 走看看