Bootstrap Notify说明文档:http://bootstrap-notify.remabledesigns.com/

Bootstrap Notify的GitHub地址:https://github.com/mouse0270/bootstrap-notify

自己使用步骤:

  1.引入js【需要提前引入jQuery和bootstrap的js】

<script src="../static/js/admin/bootstrap-notify.min.js"></script>

  2.引入动画css【需要提前引入bootstrap的css】

<link href="../static/css/login/animate.css" rel="stylesheet" />

  3.使用

 //按钮点击事件
$(".seachA").click(function(){
var notify= notifyMsg("德玛西亚");
}); function notifyMsg(msg){
var notify = $.notify({
// options
icon: 'glyphicon glyphicon-warning-sign',
title: '警告',
message: msg,
target: '_blank'
},{
// settings
element: 'body',
position: null,
type: "warning",
allow_dismiss: true,
newest_on_top: true,
showProgressbar: false,
placement: {
from: "bottom",
align: "center"
},
offset: 20,
spacing: 10,
z_index: 1031,
delay: 5000,
timer: 1000,
url_target: '_blank'
}); return notify;
}

  4.效果

最新文章

  1. 记一个简单的sql查询
  2. WPF ItemsControl ListBox ListView比较
  3. Wincap安装出现“error opening file for writing wpcap.dll”之解决办法
  4. [转载]Magento 店铺多语言设置
  5. 九度OJ1172--哈夫曼树
  6. 代码审查 Code Review
  7. 【Maven实战】传递性依赖的问题
  8. Linux BFS简介
  9. windows下grunt安装提示不成功
  10. NoSql数据库使用
  11. C#操作AD及Exchange Server总结
  12. 根据本周本月本日来查询数据 C#winform数据查询
  13. js page click
  14. 快速设计ComboBox下拉框
  15. 童话故事 --- 什么是SQL Server Browser
  16. java接口变量问题
  17. RX 和 TX
  18. maven source 1.3 中不支持泛型 解决办法
  19. JavaScript 系列博客(六)
  20. mysql创建和调用out参数的存储过程

热门文章

  1. [转] Vuex入门(2)—— state,mapState,...mapState对象展开符详解
  2. IDEA-常用插件,使用FindBugs寻找bug,代码分析
  3. 匈牙利算法 - Luogu 1963 变换序列
  4. doc下设置永久环境变量的好方法
  5. python集合、字符编码、bytes与二进制
  6. Struts2理解——转发和重定向
  7. 字符串匹配之Sunday算法
  8. 刷题总结——array(ssoj)
  9. 【BZOJ1579】Revamping Trails(分层图,最短路,堆)
  10. Struts2的上传与下载