css中background简写,在处理width的时候,都需要加一个斜线,如background: @color url(@img) 0 0/100% 100% no-repeat;
,但是在less中,这个斜线会被编译成去处符,导致css编译出来的样式不正确,请问这个怎么解决?谢谢
css中background简写,在处理width的时候,都需要加一个斜线,如background: @color url(@img) 0 0/100% 100% no-repeat;
,但是在less中,这个斜线会被编译成去处符,导致css编译出来的样式不正确,请问这个怎么解决?谢谢
避免一下浏览器编译:background: #000 url(@img ) 0 0 ~"/" 100% 100% no-repeat;
我是菜鸟
~~