三个不同的效果,分别是普通的警告,确认/取消,带一个输入框
本例用了jquery.alertify.js,请到演示页面查看
css文件也请到演示页面查看
![点击查看原始大小图片 jquery 美化弹出提示 漂亮的Dialog 对话框](https://i-blog.csdnimg.cn/blog_migrate/bd5e61ea851a837a1652d85a6cdfc31a.jpeg)
JavaScript Code
- <script type="text/javascript">
- $(document).ready(function() {
- $(".alert").click(function() {
- var message = "<h3>Alert Dialog</h3><p>Example of an <strong>Alert Dialog</strong>. You can put any message over here.</p><br/>";
- alertify.alert(message