JavaScript警报位置不在铬中心 [英] Javascript alert position not in center in chrome

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

问题描述

当我使用javascript警报时,它会在浏览器的顶部显示,不在当前版本的chrome中位置。我怎样才能控制它,并使它以 javascript 为中心。在Firefox和IE中,它工作得很好。
我当前的chrome版本30.0.1599.66

我希望将浏览器的精确位置置于所有浏览器和所有版本的浏览器中心。请帮助........



任何其他简单的提示提示,以便它可以居中,也是可观的...

解决方案

依赖于浏览器的警报不是任何选择的好选择。它们变化迅速,对于不同的浏览器不一样。



我发现有用的是使用 Alertify JS 提供所有警报需求。您可以根据自己的需求进行定制,无论如何它看起来很棒。


When I'm using an javascript alert it's going on top of the browser, not in center position in current version of chrome. How can I control it, and make it center with javascript. In firefox and IE,it's working just fine. My current chrome version 30.0.1599.66

I want to position the alert box in exact center of the browser for all type of browsers and for all versions. Please help........

Any other simple idea on providing alert so that it could be centered, would also be appreciable...

解决方案

Being dependent upon the browsers for the alerts is not a good choice for any. They change rapidly and are not the same for different browsers.

What i have found useful is to use Alertify JS for all the alert needs. You can customize it for your needs and it looks fabulous anyway.

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

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