bootstrap-弹框问题-居中
来源:互联网 发布:手机海报制作软件 编辑:程序博客网 时间:2024/06/05 20:28
data-toggle="modal" data-target="#addproject"<!--修改项目--> <div class="modal fade" id="addproject" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title login-byCardTitle" >修改项目</h4> </div> <div class="modal-body"> <p style="font-size: 15px">项目名称: </p> <p><input style="width: 80%;height: 35px" class="d-name"></p> <p style="font-size: 15px">版本号: </p> <p><input style="width: 80%;height: 35px"class="d-history"></p> <p style="font-size: 15px">项目类型:<select class="myselect" name="account" value="" style="width: 150px;height: 35px"> <option value="0">pc端</option> <option value="1">手机端</option> <option value="2">小程序</option> </select></p> <p style="font-size: 15px">项目说明:</p> <p> <textarea placeholder="输入详细说明" style="min-height: 100px;width: 90%" class="d-text"></textarea> </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary public-fontBlack" data-dismiss="modal">确认</button> <button type="button" class="btn btn-danger public-fontBlack" data-dismiss="modal">返回</button> </div> </div> </div></div><!--居中方法-->function initPublicView(){ $(".modal").on("shown.bs.modal",function(e){ console.log($(e.target).find(".modal-dialog").height()); $(e.target).find(".modal-dialog").css("margin-top",($(document).height()-$(e.target).find(".modal-dialog").height())/2); })}
阅读全文
0 0
- bootstrap-弹框问题-居中
- bootstrap modal水平居中问题
- bootstrap弹出框居中
- bootstrap 响应式布局 居中问题
- bootstrap 居中
- Bootstrap登录框自适应水平居中+垂直居中
- Bootstrap弹出框(modal)垂直居中
- bootstrap modal弹出框的垂直居中
- BootStrap学习笔记(一):内容块居中的问题
- 登陆框居中问题
- Bootstrap表格内容居中
- Bootstrap居中显示
- BootStrap Div居中
- bootstrap modal 居中
- BootStrap Div居中
- Bootstrap居中方法
- bootstrap modal垂直居中
- bootstrap模态框居中
- 使用插件bootstrap-table实现表格记录的查询、分页、排序等处理
- lesson10总结
- 用 C++ 实现类似于 JAVA HttpServlet 的编程接口
- python安装Scrapy
- promise学习
- bootstrap-弹框问题-居中
- C51下汇编的嵌入
- PyQt5界面跳转
- Http的GET请求与POST请求调用接口
- leetcode(434,205) python实现
- 2-1·Linux网络基础、OSI七层参考模型、TCP/IP四层参考模型
- select option 显示隐藏
- win7 Python3.6.0下安装pytorch
- mybatis的延迟加载 (懒加载)