bootstrap模态框
来源:互联网 发布:o2o商城源码 编辑:程序博客网 时间:2024/06/08 19:51
使用模态框需要引入俩个文件
<!-- bootstrap样式 --><link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"><!-- bootstrap样式js --><script src="js/bootstrap.min.js" type="text/javascript"></script>
添加事件
<span class="button button-primary button-rounded button-small" >年度产品统计</span>
<span class="button button-primary button-rounded button-small" data-toggle="modal" data-target="#productStatisticsModal2" >年度产品统计</span>
弹出层
<!-- 弹出层 --><!-- 折线统计图 --><div class="modal fade bs-example-modal-sm" id="productStatisticsModal2"role="dialog" aria-labelledby="mySmallModalLabel"><div class="modal-dialog modal-lg" role="document"><div class="modal-content"> <!--头部--><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span><!--关闭按钮--></button><h4 class="modal-title" id="myModalLabel">年度产品统计</h4></div> <!--内容部--><div class="modal-body"><div id="line" style="width:722px;height:300px;"></div></div> <!--底部--><div class="modal-footer"><button type="button" class="btn btn-primary" data-dismiss="modal" aria-label="Close">确定</button></div></div></div></div>
调节模态框大小
方法一
<div class="modal-content" style="width:800px; height:500px;">
方法二
变大
<div class="modal-dialog modal-lg">
变小
<div class="modal-dialog modal-sm">
阅读全文
0 0
- bootstrap--模态框
- bootstrap 模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- BootStrap 模态框
- Bootstrap 模态框
- Bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- Bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- 数据库三大范式
- 数据库三大范式
- 计算机网络自顶向下学习笔记(计算机网络和因特网一)
- 深度学习总结(一)——参数初始化
- Error creating bean with name 'hotWordServiceImpl': Unsatisfied dependency expressed through field '
- bootstrap模态框
- JDK TOMCAT环境变量设置
- Python3.x 函数实例
- 数据结构实验之图论六:村村通公路
- Qt状态机场景模拟
- lambda表达式
- Android TextView使用HTML处理图片文字混合显示
- 运算符重载(复数类(Complex))
- 哇!Django 2.0 发布,不再支持 Python 2.x