hteml
<view class="page-suspension">
<image class="page-suspension-bj" src="../../static/images/imgbj.png"></image>
</view>
css
.page-suspension{
position: relative;
background-color: #f4f4f4;
min-height: 100vh;
z-index: -2;
// margin: -30rpx -30rpx 0 -30rpx;
//背景图片
.page-suspension-bj{
width: 100%;
position: absolute;
left: 25%;
top: 0%;
transform: translate(-25%,0);
z-index: -1;
}
}
pages.json
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path" : "pages/Speedup-treasure1/Speedup-treasure1",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "transparent",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"type": "float",
"titleText": ""
}
}
}
},