.your_modal { width: 800px; margin-left: -400px; } margin left的值为模态框宽度的一半。 我在Maruti Admin主题中使用它,因为它没有类.modal-lg .modal-sm