模态窗口数据复制粘贴

最近客户有个需求,窗口弹出的数据不能复制,window.showModalDialog(),这种模态的窗口打开不能复制,改为open就可以了

居中的问题,参考论坛有个帖子回复的,问题解决。

 var iTop = (window.screen.availHeight-30-400)/2;
  var iLeft = (window.screen.availWidth-10-817)/2;

window.open("null,"_blank","top="+iTop+",left="+iLeft+",scrollbars=no,height=400,width=817,status=no,toolbar=no,menubar=no,location=no,Resizable=no");

猜你喜欢

转载自blog.csdn.net/liujun12355/article/details/38081997