html弹出层
2015-11-19 09:49
645 查看
1.public_modal()是一个封装的方法 public_Modal:访问时要调用的id public_modal(参数一,参数二,参数三): 参数一:确定按钮的id 参数二:(id="myModalLabel")标题名 参数三:(modal-body)中要添加的html内容 $(document).on("click","#plus",function(){ public_modal("taochan_add",'新增套餐', $("#add_1_html").html()); });<pre name="code" class="html"> <pre name="code" class="html"><!-- 弹出窗口模版 --> <div class="modal fade small_modal" id="public_Modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" data-backdrop="static"> <div class="modal-dialog" style="width: 95%;"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true" style="font-size: 24px">×</span> </button> <h5 class="modal-title" id="myModalLabel" style="text-align: center"></h5> </div> <div class="modal-body"></div> <div class="modal-footer"> <button type="button" class="btn btn-primary" name="submit_modal" id="" style="width: 80px">确定</button> <button type="button" class="btn btn-default" data-dismiss="modal" style="width: 80px; margin-left: 50px" onclick="initAllPrice()">关闭</button> </div> </div> </div> </div>
相关文章推荐
- html 如何获取表格中所选行的一行数据,并赋值到对应的TEXT里面?
- html页面通过特殊链接:打电话,发短信,发邮件详细教程
- HTML常用标签
- 南昌大学大神养成计划-第一课《html》
- Webkit之理解HTML解析和DOM树
- HTML 转义字符
- html转pdf工具wkhtmltopdf
- HTML中标签UL,LI和浮动,颜色,像素单位的认识
- html中常用单位
- 随手记一次用C#正则表达式获取下拉菜单html标签<select>以及相关属性值
- kindeditor限制html长度的问题
- 关于html水平垂直居中的问题小结
- log4j HTMLLayout
- 服务控件与html标签的一点
- 在HTML页面布局中,position的值有几种,默然的值是什么
- html网页框架
- HTML学习6:表单格式化
- htmlde 的简单使用
- HTML学习5:常用标签之表单标签
- Dreamweaver支持cshtml的设置方法