由于项目需要用Javascript+CSS实现alert、 confirm、pormpt的功能,具体如下图示: alert confirm prompt 转载于:https://blog.51cto.com/xpages/563580