我一直在玩Gridster.js,但对于我的生活,我似乎无法使网格居中,它总是左对齐,我已经尝试过,但也许我错过了一些东西。
我已经制作了一个jsfiddle,它具有我的网格基础,我希望有人可以解决它并帮我集中它,请:)
{{1}}
https://jsfiddle.net/036qutd9/4/
由于
答案 0 :(得分:0)
感谢Paulie_D,我设法解决了问题并将其集中在一起:)
.gridster {
width: 730px;
background: #004756;
margin-left:auto;
margin-right:auto;
opacity: .8;
-webkit-transition: opacity .6s;
-moz-transition: opacity .6s;
-o-transition: opacity .6s;
-ms-transition: opacity .6s;
transition: opacity .6s;
text-align: center;
}
.gridster > * {
margin: 0 auto;
-webkit-transition: height .4s;
-moz-transition: height .4s;
-o-transition: height .4s;
-ms-transition: height .4s;
transition: height .4s;
}