漂亮弹窗公告代码
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>漂亮弹窗公告代码</title> </head> <body> <script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/sweetalert/2.1.2/sweetalert.min.js" type="application/javascript"></script> <script> swal("公告标题", "公告内容", "success") </script> </body> </html>
上面运行看演示
下面是核心代码,复制放到自己网页合适位置即可!
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/sweetalert/2.1.2/sweetalert.min.js" type="application/javascript"></script>
<script>swal("公告标题", "公告内容", "success")</script>