background: url(${@http}/img/icon/[email protected]) no-repeat center 3rem / auto 25%;
${@http}/img/icon/[email protected]
@http是一个变量这样书写会不现实,也没有解析!
请问该怎么办?
找到答案了 应该是background: url('@{http}/img/icon/[email protected]') no-repeat center 3rem / auto 25%;
background: url('@{http}/img/icon/[email protected]') no-repeat center 3rem / auto 25%;
2.1m questions
2.1m answers
63 comments
56.6k users