.bg{
background: url(bg.png) 0 0 / 100% no-repeat;
}
css中我们这么写,如果在less中这么写"/"会被认为是除号,所以需要转义一下,有下面两种写法
.bg{
background: url(bg.png) 0 0 ~"/" 100% no-repeat;
}
.bg{
background: url(bg.png) 0 0 escape("/") 100% no-repeat;
}
.bg{
background: url(bg.png) 0 0 / 100% no-repeat;
}
css中我们这么写,如果在less中这么写"/"会被认为是除号,所以需要转义一下,有下面两种写法
.bg{
background: url(bg.png) 0 0 ~"/" 100% no-repeat;
}
.bg{
background: url(bg.png) 0 0 escape("/") 100% no-repeat;
}