我在课程col-md-4 col-md-offset-4
中有这个表单,但它太大了。如果我将其更改为此类col-md-3 col-md-offset-4
,那么它将会正常工作,但它不会再被准确地放在页面中间。如何让它居中并且大小相同?
答案 0 :(得分:0)
我认为您需要了解这一点,以便更好地了解Bootstrap的Grid Basic。
Link Here。
我认为不可能将它作为页面的中心,因为bootstrap只有12个Span Grids。在链接中看到。如果你这样做就会成为中心。
function half_width() {
var w = $('#front').width() / 2; // front face of the cube
$('#front').css({
transformOrigin : '50% 50% -' + w + 'px'
});
}
但是当然较小。