怎么修改bootstrap的model的大小样式以及出现的位置

2025-04-07 00:36:12
推荐回答(2个)
回答1:

两种方式
1、自动调整
$('#ajaxPage').modal('show').css({

width: 'auto',
'margin-left': function () {
return -($(this).width() / 2);
}
});
2、增加style,设置宽度

回答2:

直接用css样式覆盖