如果不用WXSS添加每个地方的背景图片在wxml中怎么添加呀?
WXSS代码部分样式:
.saveButton .icon-save{
/*background-image: url("data:https://images-1304802581.cos.ap-guangzhou.myqcloud.com/frame/background-pink.jpg");*/
background-size: cover;
display: inline-block;
width: 60rpx;
height: 60rpx;
}
.saveButton:active .icon-save{
background-image:"https://images-1304802581.cos.ap-guangzhou.myqcloud.com/frame/background-pink.jpg";
}
编译错误是:
[ WXSS 文件编译错误] ./pages/fabu/index.wxss
unexpected “�” at pos 260
13 | /*z-index: 5;*/
14 | }
> 15 | .saveButton .icon-save{
| ^
16 | /*background-image: url(“data:https://images-1304802581.cos.ap-guangzhou.myqcloud.com/frame/background-pink.jpg”);*/
17 | background-size: cover;
18 | display: inline-block;
at files://pages/fabu/index.wxss#15