关于 Webview窗口回弹样式 文档内的案例代码,我在真机上运行后发现不能拖动窗口
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Webview Example</title>
<script type="text/javascript">
var ws=null;
// H5 plus事件处理
function plusReady(){
ws=plus.webview.currentWebview();
ws.setBounce({position:{top:"100px"},changeoffset:{top:"44px"}});
}
if(window.plus){
plusReady();
}else{
document.addEventListener("plusready",plusReady,false);
}
// 重置窗口回弹位置
function resetBounce(){
ws.resetBounce();
}
</script>
</head>
<body style="text-align:center;">
<br/><br/><br/>
设置Webview窗口的回弹效果<br/>
回弹后显示停靠到44px的位置<br/><br/>
<button onclick="resetBounce()">重置回弹位置</button>
<br/><br/><br/>
暂仅支持顶部的回弹效果
</body>
</html>
芬达 (作者)
是不是只能自己通过 滑动DIV来自己实现?
2015-07-01 17:35