bootstarp modal自己主动调整宽度的JS代码

$('#ajaxPage').modal('show').css({
                         'auto',
                        'margin-left': function () {
                            return -($(this).width() / 2);
                        }
                    });
能够自己主动调整modal对象的宽度。而且绝对居中
原文地址:https://www.cnblogs.com/bhlsheji/p/5073681.html