bootstrap怎么调整大小

2025-03-30 22:06:58
推荐回答(1个)
回答1:

两种方式
1、自动调整
$('#ajaxPage').modal('show').css({
width: 'auto',
'margin-left': function () {
return -($(this).width() / 2);
}
});
2、增加style,设置宽度