.bg-image(@url){
background-image:~"url(@{url}@2x.png)";
@media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3){
background-image:~"url(@{url}@3x.png)";
}
}
background: url('@{http}/img/icon/daorug@2x.png') no-repeat center 3rem / auto 25%;
热门评论
url(~"")加个~就能解决引入mixins中的background的url的路径相对于谁的问题吗?