h***@163.com
h***@163.com
  • 发布:2025-06-29 11:50
  • 更新:2025-06-30 08:46
  • 阅读:37

uniapp原生导航栏上下有一条横线要怎么解决

分类:uni-app

我在使用 uniapp的原生导航栏的时候,上下总会有一条白线,我怎么也去除不掉,这是怎么回事?
在web端的话就没有。
在h5和小程序上就会有。
我这App.vue 里面是这样设置的:

    /*每个页面公共css */  
    uni-page-head {  
        border-bottom: none !important;  
        .uni-page-head-hd {  
            height: 0;  
            margin: 0;  
            padding: 0;  
            border: none;  
            font-size: 0;  
        };  

        .uni-page-head-ft {  
            height: 0;  
            margin: 0;  
            padding: 0;  
            border: none;  
            font-size: 0;  
        }  
    }

然后效果是这样的:

2025-06-29 11:50 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

"navigationStyle": "custom"

直接去掉不行么?

要回复问题请先登录注册