<view>
<image src="/static/my/bg.png" class="bg-img" mode="widthFix"></image>
</view>
.bg-img {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
}
设置整个页面背景图片
最新推荐文章于 2024-06-15 11:46:27 发布
<view>
<image src="/static/my/bg.png" class="bg-img" mode="widthFix"></image>
</view>
.bg-img {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
}