参考文档:http://ask.dcloud.net.cn/question/66571
【仅APP会出问题,h5不会出问题】问题产生的原因:自定义按钮的fontSize属性使用了upx单位就会导致问题。
fontSize设置px单位就成功了【切记:APP修改了pages.json文件一定要重启,否则看不到效果!】
{
"path" : "pages/search/search",
"style": {
"navigationBarTitleText": "搜索页",
"app-plus":{
"titleNView":{
"autoBackButton":false,
"buttons":[{
"text":"取消",
"float":"right",
"fontSize":"14px"
}],
"searchInput":{
"autoFocus":true,
"placeholder":"搜索糗事",
"borderRadius":"10px",
"backgroundColor":"#F5F4F4"
}
},
"scrollIndicator":"none"
}
}