怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
怎样让bootstrap中div水平居中
这个跟bootstrap貌似没有什么关系,难道不都是"margin:0 auto"?
你首先看看这个div的外层div是怎样的,看这个div是不是加了浮动,然后你看看你想剧中的这个div是不是有浮动,有的话就清掉,还有你看是不是有
绝对定位了,反正你看清楚css属性有没有干扰的,然后这个div正常的你只要加margin:0 auto是一定会居中的
bootstrap自有属性 :text-center 还可以用栅格系统偏移来做