首页 > 技术文章 > metronic-v4.6 使用经验

ideacore 2017-09-20 21:46 原文

1、弹框居中显示

上下居中

需要上下居中引用  bootstrap-modalmanager.js

左右居中

修改 bootstrap-modal.js 中 this.$element.css('margin-left', '');   改为  this.$element.css('margin-left', 0 - this.$element.width() / 2);

弹框大小

去掉 bootstrap-modal-bs3patch.css 中 .model 中的 width: 500px;

 外面套了一层

其实是因为使用的 modal-dialog 的样式,解决办法是修改 bootstrap.css 中的 bootstrap.css 样式

2、select2 宽度不让自动适应

$(".select2me").select2({ width: 'resolve' });

 

推荐阅读