参考http://blog.csdn.net/altaba/article/details/54669660 稍微修改了一下
$('#youModel').on('shown.bs.modal', function (e) {
$(this).css('display', 'block');
var modalHeight=$(window).height() / 2 - $('#youModel .modal-dialog').height() / 2;
$(this).find('.modal-dialog').css({'margin-top': modalHeight});
});