diff --git a/src/less/image.less b/src/less/image.less index 23d3593e9..add5b1d0f 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} {