I tried the following:
30条回答 余生分开走 (楼主) 2020-11-27 09:27 Solution was taken from this page $('#feedback-modal').modal({ backdrop: true, keyboard: true }).css({ width: 'auto', 'margin-left': function () { return -($(this).width() / 2); } }); 0 讨论(0) 查看其它30个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Solution was taken from this page
$('#feedback-modal').modal({ backdrop: true, keyboard: true }).css({ width: 'auto', 'margin-left': function () { return -($(this).width() / 2); } });