less 常用函数–雪碧图
.stitches-sprite(@x: 0, @y: 0, @width: 0, @height: 0) {
background-position: @x @y;
width: @width;
height: @height;
}
.sprite {
background-image: url(spritesheet.png); background-repeat: no-repeat;
display: block;
&.sprite-icno-1 {
.stitches-sprite(-5px, -5px, 18px, 18px);
}