zoukankan      html  css  js  c++  java
  • sess文件编译输出css的四种方式以及使用

     sess文件输出css有下面四种方式:

     :nested(嵌套)
     :compact(紧凑)
     :expanded(展开)
     :compressed(压缩)

     如何使用:

     sass --watch style.scss:style.css --style compressed

     默认输出css方式是嵌套:也就是 nested(嵌套)

    原始写在本地的sess样式文件,例如:
    .widget-social { text-align: right; a, a:visited { padding: 0 3px; color: #222222; color: rgba(34, 34, 34, 0.77); } a:hover { color: #B00909; } }

      nested(嵌套)

    .widget-social {
      text-align: right; }
      .widget-social a,
      .widget-social a:visited {
        padding: 0 3px;
        color: #222222;
        color: rgba(34, 34, 34, 0.77); }
      .widget-social a:hover {
        color: #B00909; }
    

      expanded(展开)

    .widget-social {
      text-align: right;
    }
    .widget-social a,
    .widget-social a:visited {
      padding: 0 3px;
      color: #222222;
      color: rgba(34, 34, 34, 0.77);
    }
    .widget-social a:hover {
      color: #B00909;
    }
    

      compact(紧凑)

    .widget-social { text-align: right; }
    .widget-social a, .widget-social a:visited { padding: 0 3px; color: #222222; color: rgba(34, 34, 34, 0.77); }
    .widget-social a:hover { color: #B00909; }
    

      compressed(压缩)

    .widget-social{text-align:right}.widget-social a,.widget-social a:visited{padding:0 3px;color:#222222;color:rgba(34,34,34,0.77)}.widget-social a:hover{color:#B00909}
    

      

  • 相关阅读:
    前端入门21-JavaScript的ES6新特性
    redis 数据库安装和基本使用
    django 与 Vue 的结合使用说明
    websocket 与 tornado 的结合
    tornado 模板引擎
    tornado 初解
    ajax post 提交数据和文件
    Session Cookies随笔
    爬虫 scrapy 笔记
    绘制验证码 刷新验证码
  • 原文地址:https://www.cnblogs.com/ChineseLiao/p/11896404.html
Copyright © 2011-2022 走看看