如何将Bootstrap 3 Jumbotron中的文本一直对齐到左侧(How to align the text in a Bootstrap 3 Jumbotron all the way to the left)
我正试图将我的Jumbotron(Bootstrap 3)中的文本一直放到左边。 我尝试了填充和对齐,但似乎没有任何工作:在Jumbotron背景的左开头和文本之间总是有一段距离。
我尝试添加到自定义css文件:
.jumbotron { padding-left: 0px; padding-top: 3px; padding-bottom: 3px; }上下工作。 左边没有。
I'm trying to have the text in my Jumbotron (Bootstrap 3) all the way to the left. I tried padding and align but nothing seems to work: there's always a distance between the left-beginning of the Jumbotron background and the text.
I tried adding to a custom css file:
.jumbotron { padding-left: 0px; padding-top: 3px; padding-bottom: 3px; }Top and bottom work. Left doesn't.
最满意答案
这是因为Bootstrap css风格:
.container .jumbotron { padding-left: 60px; }尝试覆盖它。
It is because of Bootstrap css style:
.container .jumbotron { padding-left: 60px; }Try to override it.
更多推荐
发布评论