bootstarp modal框居中
来源:互联网 发布:怎么让淘宝号快速升3心 编辑:程序博客网 时间:2024/05/23 23:48
bootstrap.js的大概1154行:
this.$element.css({ paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''})
后加:
// 是弹出框居中 var $modal_dialog = $(this.$element[0]).find('.modal-dialog'); var m_top = ( $(window).height() - $modal_dialog.height() )/2; $modal_dialog.css({'margin': m_top + 'px auto'}); }
P.S. 需要的东西每次都要查一遍太麻烦了。以后注意整理。
0 0
- bootstarp modal框居中
- bootstarp中modal垂直居中
- bootstarp modal 上使用bootstarp-datepicker 年月下拉框点击不出来的bug
- bootstarp 模态框居中
- Bootstrap弹出框(modal)垂直居中
- bootstrap modal弹出框的垂直居中
- bootstrap modal 居中
- bootstrap modal垂直居中
- bootstrap modal居中
- bootstrap modal 垂直居中
- bootstrap modal垂直居中
- bootstarp modal自动调整宽度的JS代码
- Bootstrap模态框(modal)垂直居中
- Bootstrap模态框(modal)垂直居中
- Bootstrap modal 模态框垂直居中
- bootstrap模态框(modal)垂直居中
- bootstrap modal 垂直居中对齐
- bootstrap modal 垂直居中对齐
- 乐观锁与悲观锁——解决并发问题
- 读书笔记 effective c++ Item 9 绝不要在构造函数或者析构函数中调用虚函数
- pageContex获取其他数据
- linux使用crontab实现PHP执行定时任务
- Git 使用遇到的各种问题
- bootstarp modal框居中
- 二分法--Pie
- 二分法--Can you find it?
- DFS--N皇后问题
- DFS--Prime Ring Problem
- DFS--Red and Black
- 二分&&贪心--Block Towers
- 记忆化搜索(DFS+动态规划)--滑雪
- Parencodings