1.设置背景图片
:style="{backgroundImage: `url(${url})` }"
background-repeat: no-repeat;
background-size: cover;
2.设置边距
:style="{marginTop:navIndex === 1?'-10rpx':''}"
3.支付宝小程序动态设置背景图片
style="background-image:url({{item.imgUrl}})"
1.设置背景图片
:style="{backgroundImage: `url(${url})` }"
background-repeat: no-repeat;
background-size: cover;
2.设置边距
:style="{marginTop:navIndex === 1?'-10rpx':''}"
3.支付宝小程序动态设置背景图片
style="background-image:url({{item.imgUrl}})"