uniapp - pages.json配置的导航栏上的文字显示不全和自定义导航栏

1. "width": "auto" //加上宽度解决显示不全问题
{
            "path": "pages/complaint/information",
            "style": {
                "navigationBarTitleText": "消息列表",
                "enablePullDownRefresh": false,
                // "navigationStyle": "custom" //自定义导航
                "app-plus": {
                    "titleNView": {
                        "buttons": [
                            {
                            "color": "#fff",
                            "float": "right",
                            "fontweight":"bold" ,
                            "fontSize": "15px",
                            "fontSrc": "/static/font/iconfont.ttf",
                            "text": "全标已读",
                            "signType": "ready",
                            "width": "auto"  //加上宽度解决显示不全问题
                        }
                        
                        ]
                    }
                }
                
            }


},

2.自定义导航栏 :::::"navigationStyle": "custom" //自定义导航


       消息列表
       
          全标已读
        
      
 

.status_bar {
        height: var(--status-bar-height);
        width: 100%;
}
        
        

你可能感兴趣的:(servlet,java,服务器)