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' });

 

相关文章:

  • 2021-04-27
  • 2021-07-25
  • 2021-12-13
  • 2021-10-06
  • 2022-01-18
  • 2022-02-20
  • 2021-11-17
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-12-24
  • 2021-08-29
  • 2021-09-10
  • 2021-04-26
  • 2021-07-14
相关资源
相似解决方案