less-Variable Interpolation(变量插值)
来源:互联网 发布:资生堂淘宝有旗舰店吗 编辑:程序博客网 时间:2024/05/16 06:01
1、选择器
编辑less:
// Variables@my-selector: banner;// Usage.@{my-selector} { font-weight: bold; line-height: 40px; margin: 0 auto;}
输出css:
.banner { font-weight: bold; line-height: 40px; margin: 0 auto;}
2、URL
编辑less:
// Variables@images: "../img";// Usagebody { color: #444; background: url("@{images}/white-sand.png");}
输出css:
body { color: #444; background: url("../img/white-sand.png");}
3、导入语句
编辑less:
// Variables@themes: "../../src/themes";// Usage@import "@{themes}/tidal-wave.less";
4、属性
编辑less:
@property: color;.widget { @{property}: #0ee; background-@{property}: #999;}
生成css:
.widget { color: #0ee; background-color: #999;}
5、变量名
编辑less:
@fnord: "I am fnord.";@var: "fnord";.contain:after{ content: @@var;}
生成css:
.contain:after { content: "I am fnord.";}
阅读全文
0 0
- less-Variable Interpolation(变量插值)
- 插值(Interpolation)
- 插值(interpolation)
- 插值(Interpolation)
- Cubic interpolation立方插值
- stylus之插值(Interpolation)
- cubic convolution interpolation (三次卷积插值)
- 重心座标插值(Barycentric Interpolation)
- OpenGL 实现Interpolation插值算法
- Interpolation Search 插值搜索算法
- scipy module 1 -- Scipy Tutorial 2 Interpolation(插值)
- 视频插值--Video Frame Interpolation via Adaptive Separable Convolution
- bash变量(variable)
- PowerShell 变量(Variable)
- Tetrahedron based light probe interpolation(基于四面体的Light Probe插值)
- scale an image using nearest neighbor interpolation 近邻插值代码
- Spherical linear interpolation for Quaternions (四元数的球面插值计算)
- Spherical linear interpolation for Quaternions 2(四元数的球面插值计算,另一种方式)
- hdu5667 Sequence矩阵连乘
- 题目1010:A + B
- 软件工程(C编码实践篇)学习总结
- windows系统下安装centos linux系统
- 《重构改善既有代码的设计》第一个重构案例
- less-Variable Interpolation(变量插值)
- 选项卡效果
- Java中的==和equals方法
- Ubuntu教程
- MySQL 之 SQL 语句优化学习
- Eclipse中查看JDK源码
- 36. 编写完成fun函数实现将一行字符串中的最短的单词输出。此行字符串从主函数传递给该函数。
- echarts柱状图虚线显示
- Linux安装flux护眼软件