我在使用 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;
}
}
然后效果是这样的: