在铬中弹出打开的位置 [英] popup open position in chrome

查看:102
本文介绍了在铬中弹出打开的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用firefox,然后使用 window.open('blah.com','blah','left = -30,top = -300'); ,弹出窗口在我的第一个弹出窗口中打开,但是在chrome中,弹出窗口在 left = 0,top = 0 打开。是否有一个原因铬为什么这样做,我将如何解决这个问题?

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中的一个错误,但说实话,我并没有意识到这个问题,因为我自己是JavaScript新手。对不起,我确定这不是你正在寻找的答案。

I think this is a bug in Chrome to be honest but I'm not aware of a fix at the moment as I'm new to JavaScript myself. Sorry I'm sure this not the answer you were looking for.

这篇关于在铬中弹出打开的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆