1、方法一:通过全局样式添加
page::before{
content: '';
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 2rpx;
background-color: #f0f0f0;
z-index: 9999;
}
2、方法二:此方法app端生效
{
"path" : "pages/index/index",
"style" : {
"navigationBarTitleText": "首页",
"app-plus": {
"titleNView": {
"splitLine": {
"color":"#f2f2f2"
}
}
}
}
},
本文介绍了在iOS应用和Web页面中通过两种不同的方法定制页面头部样式:一种是全局样式覆盖,适用于所有页面;另一种是在app端使用特定路径的配置,如设置navigationBarTitleText和titleNView的splitLine颜色。
626

被折叠的 条评论
为什么被折叠?



