是否可以创建非居中Javascript警报框? [英] Is it possible to create a non-centered Javascript alert box?
本文介绍了是否可以创建非居中Javascript警报框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于标准Javascript alert()
框,是否可以使其出现在屏幕中心以外的其他位置?您可以指定水平和/或垂直位置吗?
For a standard Javascript alert()
box, is it possible to have it appear in a position other than the center of the screen? Can you specify horizontal and/or vertical position?
推荐答案
Afaik,无法将其放置在所需位置.
Afaik, it cannot be positioned where you want it.
您可以始终使用其中一种JS框架/工具包解决方案,而不是使用默认的js警报框,从而在功能和自定义方面提供更多的方式.
Instead of using the default js alert box, you can always use one of the JS framework / toolkit solutions that offer way more in terms of functionality and customization.