bootstrap3-dialog-master模态框使用详解
2017-08-22 14:05
591 查看
bootstrap3-dialog-master是一款高效,灵活的模态框,此处为基本知识!
1、源码地址
https://github.com/nakupanda/bootstrap3-dialog
2、效果展示
3、示例代码
所需引入的js和css
<link rel="stylesheet" type="text/css" href="css/bootstrap-dialog.css" rel="external nofollow" > <link rel="stylesheet" type="text/css" href="css/bootstrap.css" rel="external nofollow" > <script type="text/javascript" src="js/jquery-1.11.3.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> <script type="text/javascript" src="js/bootstrap-dialog.js"></script>
初始化
<button type="button" id="tm" class="btn btn-primary" style="margin: 100px;"> <span class="glyphicon glyphicon-remove" aria-hidden="true"> </span>点我</button>
js实现代码
<script > $(function(){ $('#tm').on('click',function(){ BootstrapDialog.show({ type : BootstrapDialog.TYPE_DANGER, message: '你确定要删除吗?', size : BootstrapDialog.SIZE_NORMAL, buttons: [{ label: '确定', action: function(dialog) { dialog.close(); } }, { label: '取消', action: function(dialog) { dialog.close(); } }] }); }) }) </script>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
相关文章推荐
- jquery.bootstrap.teninedialog.js使用说明
- BootstrapQ 包Bootstrap tree,dialog等待
- bootstrap3-dialog:更强大、更灵活的模态框
- 常用插件--bootstrap3-dialog
- Bootstrap之BootstrapDialog
- Bootstrap之BootstrapDialog
- jQueryUI modal dialog does not show close button (x) JQueryUI和BootStrap混用时候,右上角关闭按钮显示不出图标的解决办法
- BootstrapDialog.dialogs关闭指定层的弹出框
- ASP.NET MVC BootstrapDialog
- bootstrap3-dialog:更强大、更灵活的模态框(封装好的模态框)
- bootstrap3-dialog:更强大、更灵活的模态框
- bootstrap3 dialog 更强大、更灵活的模态框
- bootstrap插件中dialog与confirm同时出现会使界面产生混乱
- bootstrap3-dialog使用实例
- bootstrap-dialog插件的使用
- bootstrap中弹出窗体dialog的自定义
- bootstrap3-dialog 使用说明
- 在bootstrap modal dialog中使用webupload,打不开对话框问题解决
- BootstrapDialog.show函数底层简化
- bootstrap style for jQuery UI Dialog