$('#ajaxPage').modal('show').css({
width: 'auto',
'margin-left': function () {
return -($(this).width() / 2);
}
});
能够自己主动调整modal对象的宽度。而且绝对居中
bootstarp modal自己主动调整宽度的JS代码
最新推荐文章于 2021-02-03 14:41:52 发布