zoukankan      html  css  js  c++  java
  • Less

    1.变量

    @

    2.混入

    3.嵌套

    4.&

    针对当前元素还是后代元素

    5.function & operations

    opearations支持 + - */ 四则运算,支持大括号

    lighten(@color, 10%);     // return a color which is 10% *lighter* than @color
    					darken(@color, 10%);      // return a color which is 10% *darker* than @color
    
    					saturate(@color, 10%);    // return a color 10% *more* saturated than @color
    					desaturate(@color, 10%);  // return a color 10% *less* saturated than @color
    
    					fadein(@color, 10%);      // return a color 10% *less* transparent than @color
    					fadeout(@color, 10%);     // return a color 10% *more* transparent than @color
    
    					spin(@color, 10);         // return a color with a 10 degree larger in hue than @color
    					spin(@color, -10);        // return a color with a 10 degree smaller hue than @color			
    

    6.namespace >

    取出mixing对象的一部分

    7. scope

    就近原则

    8. comments

    //
    /**/

    9. 客户端使用

    引用 less.js文件http://lesscss.googlecode.com/files/less-1.1.3.min.js

  • 相关阅读:
    centos 部署.NET CORE
    nginx 负载均衡
    graylog centos7 部署
    springboot 2.x centos 7.0 部署
    HashMap源代码阅读理解
    服务器安装redis
    java ---- gradle
    uboot-makefile总览
    makeFile
    Spring 推断构造方法
  • 原文地址:https://www.cnblogs.com/gloxing/p/5955739.html
Copyright © 2011-2022 走看看