请老师们帮我看看,怎么就显示不出来图片,提示渲染错误
wxml
<swiper class="swiperclass" indicator-dots autoplay interval="10000" duration="1000">
<swiper-item>
<view class="img" style="background-image: url(`/images/1.jpg`)"></view>
</swiper-item>
wxss
page{
width: 100%;
height: 100%;
}
.swiperclass{
height: 30%;
}
.img{
height: 100%;
background-size: contain;
}
背景图片不能用本地路径图片 ,必须是网络图片地址才行