js window.open方法在手机上显示全屏,但是有设置大小啊
android嵌入html
html中按钮调用js函数:
var tkhight = screen.height * 0.6;
var tkwidth = screen.width * 0.9;
var iTop = (window.screen.availHeight - 30 - tkhight) / 2;
var iLeft = (window.screen.availWidth - 10 - tkwidth) / 2;
window.open('NaYin.html','','width='+tkwidth+',height='+tkhight+',top='+iTop+',left='+iLeft+'');
其实window.open('NaYin.html','','width=100,height=100');也试过
这两个在pc端测试都是正常的,但是放在app里面点击按钮后就弹出一个全屏的页面了
我想达到的页面效果:标题,主体文字,弹框下方有一个叉叉用来关闭弹框,整个弹框居中,长60%,宽90%,请大神指点,如何才能做出这样的弹框,以及window.open的错误在哪里