bootstrap 提示框插件 bootstrap-growl 和bootstrap-notify用法简介
来源:互联网 发布:vmware fusion 8 mac 编辑:程序博客网 时间:2024/04/29 21:35
近期项目接触到bootstrap,原谅我孤陋寡闻从来都没有听过bootstrap前端框架(o(╯□╰)o 前前段时间接触到的EasyUI也没有听过),哎,废话不多说了,把bootstrap的两个提示插件做一个简要的介绍
1. 插件 bootstrap-growl ,插件github地址:https://github.com/ifightcrime/bootstrap-growl
以下是说明以及效果图:
bootstrap-growl这个插件比较简单,源码也就只有一点点(我就不贴源码了。反正贴了也不会看),介绍一下用法
$.bootstrapGrowl("My message");$.bootstrapGrowl("another message, yay!", { ele: 'body', // which element to append to 绑定到某个元素 type: 'info', // (null, 'info', 'danger', 'success') 提示的类型 offset: {from: 'top', amount: 20}, // 'top', or 'bottom' 相对顶部或者底部的距离 align: 'right', // ('left', 'right', or 'center') 位置 左右居中 width: 250, // (integer, or 'auto') 宽度 delay: 4000, // Time while the message will be displayed. It's not equivalent to the *demo* timeOut! 自动消失时间设置 allow_dismiss: true, // If true then will display a cross to close the popup. 是否出现小叉叉点击就取消提示框 stackup_spacing: 10 // spacing between consecutively stacked growls. 这是嘛不太懂 说啥间距嘛的 });
效果图:
2.插件 bootstrap-notify.min.js 插件github地址 https://github.com/mouse0270/bootstrap-notify
因为这个插件内容很多,你能想到的基本都有,所以只做一些简单说明(我也只用到这一点点)
function errorMesg(mess){ $.notify({ title: '<strong>Prompt!</strong>', message: mess },{ type: 'danger' }); }
其实还有很多用法,比如说Icon-提示框带图片,url-链接路径 ,animate-动画等等,更多请
查看 Demon http://bootstrap-notify.remabledesigns.com/
CSDN下载链接: bootstrap-notify http://download.csdn.net/detail/u013361445/9119241
bootstrap-growl http://download.csdn.net/detail/u013361445/9119247
2 0
- bootstrap 提示框插件 bootstrap-growl 和bootstrap-notify用法简介
- sublime bootstrap提示插件
- bootstrap提示和弹出框
- Bootstrap标签页和工具提示插件
- bootstrap标签页和工具提示插件
- Bootstrap 提示工具和弹出框(Popover)插件
- **BOOTSTRAP** Bootstrap简介
- 初涉bootstrap:bootstrap 插件
- Bootstrap 提示框
- bootstrap自定义提示框
- Bootstrap工具提示框
- bootstrap提示框示例
- BootStrap 下拉框插件
- Bootstrap简介
- Bootstrap简介
- bootstrap简介
- Bootstrap简介
- bootstrap简介
- JAVA基础_db03_java运算符-语句
- VC类型转换(实测)
- 浅谈HTTP中Get与Post的区别
- Android程序的时候就要设计到编写xml布局文件,这里就教你如何设置xml的自动补全。
- 要看清的不是别人,要先看清自己
- bootstrap 提示框插件 bootstrap-growl 和bootstrap-notify用法简介
- 读取txt文件中的值并用myBatis将对象插入到数据库中
- *LeetCode-Container With Most Water
- 求数组的区间和
- 360与酷派和解,增持奇酷比例升至75%
- c++ primer plus第十二章-动态内存和类、复制构造函数
- WPF--窗口之间的值传递
- 基于xmpp客户端与服务器的快速重连方法、终端和服务器
- 校园网络 120 (数组模拟+技巧)