我有一个动态生成的 Div 数据。
我想在某个事件触发后在弹出窗口中打开该 div 数据。
我的代码已经完成了。但是当弹出窗口在我的浏览器中打开时,它没有居中对齐。它出现在角落里。
我的代码:-
var left = (window.screen.width / 2) - ((w / 2) + 10);
var top = (window.screen.height / 2) - ((h / 2) + 50);
window.open('','',
"status=no,height=" + height + ",width=" + width + ",resizable=yes,left="
+ left + ",top=" + top + ",screenX=" + left + ",screenY="
+ top + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)