利用流布局,设置z-index层级,将image标签置于底层
//html
<view class="container">
<image src='../image/1.jpg'></image>
<view class='up'>
背景图片
</view>
</view>
//css
.container{
width: 100%;
height: 600rpx;
margin: 0;
padding: 0;
position: relative;
}
image{
position: absolute;
width: 100%;
height: 600rpx;
}
.up{
position: absolute;
z-index: 1;
}