HBuilder左侧导航栏消失解决方法

本文目录一览

hbuilder怎么在电脑网页右上角添加导航栏

HBuilder实现透明渐变导航栏+自定义按钮(右上角分享按钮)

一、视图:

js代码:

mui.plusReady(function(){

varws=plus.webview.currentWebview();

ws.setStyle({

"titleNView":{

backgroundColor:'#f7f7f7',//导航栏背景色

titleText:'透明渐变(原始模式)',//导航栏

titleColor:'#000000',//文字颜色

Type:'Transparent',//透明渐变样式

Buttons:[{

Text:'',

浮动:'右t',

写入:'分享',

onClick:"javascript:plus.webview.currentWebview().evalJS('shareHref();')"

}],

autoBackButton:true,//绘制后退箭头自动

splitLine:{//底部分割线

Color:'#com.cccccc'

}

}

})

})

html代码:

顶部横幅图片开始->

首对“归国”大熊猫双胞胎返回中国

横幅结束图片上-->

文章作者、发表时间和其他信息-->

中国新闻联播

发表于

2018-12-0504:22