html5+ 原生标题栏添加input 输入框

titleNView: {
backgroundColor: "#f7f7f7", // 导航栏背景色
titleText: "", // 导航栏标题
titleColor: "#000000", // 文字颜色
// type: "transparent", // 透明渐变样式
autoBackButton: true, // 自动绘制返回箭头
tags: [
{
tag: "input",
id: "input",
inputStyles: {
fonstSize: "16px",
type: "search",
borderColor: "#f8f8f8",
placeholder: "搜索校车线路、站点、地点",
borderWidth: "70%",
onComplete:function(e){
// alert(e.text);
}
},
position: {
top: top,
left: "100px",
width: "100%",
height: "100%"
},
 
}
]
}

猜你喜欢

转载自www.cnblogs.com/cxf1992/p/10458520.html