标签:
// Variables
@mySelector: banner;
// Usage
.@{mySelector} {
font-weight: bold;
line-height: 40px;
margin: 0 auto;
}
图片域名
// Variables
@images: "../img";
// 用法
body {
color: #444;
background: url("@{images}/white-sand.png");
}
变量的变量
@fnord: "I am fnord."; @var: "fnord"; content: @@var;
当前域变量
@var: 0;
.class1 {
@var: 1;
.class {
@var: 2;
three: @var;
@var: 3;
}
one: @var;
}
1.one:1 当前域名
2 tree:3 当前域的最后一个决定
TODO http://less.bootcss.com/features/#variables-feature
附:http://less.bootcss.com/features/
标签:
原文地址:http://www.cnblogs.com/jdhu/p/4375152.html