plus.webview.create("zhezhao.html", "zhezhao.html", {
width: '200px',
height: '200px',
margin: "auto",
background: "rgba(0,0,0,0.3)",
scrollIndicator: 'none',
scalable: false,
popGesture: 'none'
});
如何实现点击webview窗口之外的灰色区域,能够关闭webview。
1***@qq.com
- 发布:2018-02-02 09:22
- 更新:2018-02-02 15:15
- 阅读:1266
var t = plus.webview.create('text.html','text', {
width: '200px',
height: '200px',
margin: "auto",
background: "rgba(0,0,0,0.2)",
mask:'rgba(0,0,0,0)',
scrollIndicator: 'none',
scalable: false,
backButtonAutoControl:'none',
popGesture: 'none'
})
t.show()
t.addEventListener('maskClick', function(e){
t.close()
}, false );