问题描述
当我使用 firefox 然后使用 window.open('blah.com','blah','left=-30,top=-300'); 时,弹出窗口打开在我的第一个显示器上方但在 chrome 中的第二个显示器中,弹出窗口仅在 left=0,top=0 处打开.chrome 这样做是有原因的吗?我将如何解决这个问题?
When I'm using firefox and then using window.open('blah.com','blah','left=-30,top=-300');, the popup opens in my second display above my first one but in chrome, the popup just opens at left=0,top=0. Is there a reason why chrome is doing this and how would I fix the problem?
谢谢!
推荐答案
这是 Chrome 在辅助显示器上打开弹出窗口时的错误.Chrome 的人似乎说这是一个安全问题(尽管这是一个安全问题超出了我的范围).
This is a bug in Chrome when the pop-up window is opened on the secondary monitor. The Chrome folks seem to say that this is a security issue (though how this is a security issue is beyond me).
现在,在不存在的辅助监视器上打开一个弹出窗口,我可以理解这是一个安全问题,但是......无论如何.
Now, opening a pop-up window on a NON-EXISTENT secondary monitor, I could understand is a security issue, but... whatever.
这里是关于此事的讨论链接:
Here's a link to a discussion on the matter:
https://code.google.com/p/chromium/issues/detail?id=137681
这篇关于Chrome 中第二台显示器上的“window.open"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!





大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)