作者:sky梦幻 | 来源:互联网 | 2023-05-19 04:42
ImunabletocenteralotofdivsinceIupgrademybootstrapfrom2.1to3.0因为我将引导程序从2.1升级到3.0,所以
I'm unable to center a lot of div since I upgrade my bootstrap from 2.1 to 3.0
因为我将引导程序从2.1升级到3.0,所以我无法集中很多div
For example with this code:
例如,使用此代码:
I had this rule:
我有这个规则:
#center {
margin: 0 auto;
}
But the result is:
但结果是:
Or another example, how to center this:
或者另一个例子,如何居中:
- aaaaaaaaa
- bbbbbbbbbb
- cccccccccccc
- aaaaaaaaa
- bbbbbbbbbb
- cccccccccccc
Thank you for your help
感谢您的帮助
2 个解决方案