微信小程序自定义头部样式
![![在这里插入图片描述](https://img-blog.csdnimg.cn/bd9cb6833cbe4297ac8db8799be8dindex.wxml](https://i-blog.csdnimg.cn/blog_migrate/f9e7b6a8ce4dc18c4f7cfcbbc08b7f2e.png)
index.wxml
<image class="navigation-bg" src="/static/img/bg.jpeg"></image>
index.wxss
.navigation-bg{
width: 100%;
height: 200rpx;
position: fixed;
top: 0;
z-index: -999;
}
index.json
{
"usingComponents": {
},
"navigationStyle":"custom",
"navigationBarTextStyle":"white"
}