less - 循环 loop
2024-08-30 20:28:28
.avatar-loop(@n, @i:1, @level) when (@i <= @n) {
&:nth-child(@{level}) .item.item-@{i} {
.avatar {
background-position: (-190px * (@i - 1) - 10px * (@i - 1)) (-190px * (@level - 1) - 10px * (@level - 1));
}
}
.avatar-loop(@n, (@i + 1), @level);
}
.avatar-loop(4, 1, 1);
.avatar-loop(4, 1, 2);
.avatar-loop(4, 1, 3);
.avatar-loop(4, 1, 4);
最新文章
- C++_系列自学课程_第_12_课_结构体
- C# exe dll防止反编译-- dotNET_Reactor
- TTAS Lock C++11 实现
- Quartz 框架的应用
- js通过alert查看对象或数组内容
- 使用spring.net 1.3.2框架部署在虚拟目录上发生错误
- matlab实现复合梯形法则
- [转]Metasploit的meterpreter黑客脚本列表
- Jersey中的常用注解总结
- SQL Server-基础-经典SQL语句
- Windows10文件目录下添加 Shift+右键打开管理员Powershell窗口
- mac 配置vue+sanic环境准备工作
- js-工具函数
- ubuntu代理设置
- js的with语句,和debugger语句
- 【原理、应用】Quartz集群原理及配置应用
- Eclipse中使用MySql遇到:Loading class `com.mysql.jdbc.Driver&#39;. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver&#39;. The driver is automatically registered via the SPI and manual loading o
- 长沙.NET社区之光
- 龙儿经理嘴上经常说的B树
- 为什么需要maven,maven能解决什么问题 ,maven是什么