如何将Bootstrap 3 Jumbotron中的文本一直对齐到左侧(How to align the text in a Bootstrap 3 Jumbotron all the way to

编程入门 行业动态 更新时间:2024-10-15 04:21:34
如何将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.

更多推荐

本文发布于:2023-07-28 06:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1301645.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   文本   Bootstrap   left   Jumbotron

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!