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

it2025-07-15  10

$('#ajaxPage').modal('show').css({ width: 'auto', 'margin-left': function () { return -($(this).width() / 2); } });能够自己主动调整modal对象的宽度。而且绝对居中

转载于:https://www.cnblogs.com/bhlsheji/p/5073681.html

最新回复(0)