diff --git a/src/less/image.less b/src/less/image.less index 23d3593e9f..df60b8aa00 100644 --- a/src/less/image.less +++ b/src/less/image.less @@ -18,6 +18,16 @@ _background: none; } +.background(@class, @backgroundPath, @top:center, @left:center, @repeat: no-repeat) { + .@{class} { + .image2xPath(@backgroundPath, @top, @left, @repeat); + + &.hack { + .imagePath(@backgroundPath, @top, @left, @repeat); + } + } +} + // 默认icon .icon(@class, @iconPath) { .@{class} {