我正在使用引导模式来显示图像。
我如何简单地使Twitter Bootstrap
模态窗口更大?
我正在使用(相关)问题中的代码:
$('#myModal').modal({
backdrop: true,
keyboard: true,
show: false
}).css({
// make width 90% of screen
'width': function () {
return ($(document).width() * .9) + 'px';
},
// center model
'margin-left': function () {
return -($(this).width() / 2);
}
});
但结果如下:
我必须向下滚动它。如何保持图像比例并在没有滚动条的情况下显示它?