怎么把文字居中
How to put the text in the center
如何将文本放在中心轮播中(bootstrap)。尝试调整 span 元素或?
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/1.jpg" class="img-responsive" alt="...">
<div class="carousel-caption">
<span><strong><p>Aktuelnosti u proizvodnji malina</p></strong>
</span>
</div>
</div>
.carousel-caption {
text-align: center;
}
这将使 div 中包含的任何文本居中。如果你只想做跨度,你可以使用
.carousel-caption span {
}
Bootstrap 2.3 有 class text-center ,http://getbootstrap.com/2.3.2/base-css.html
对于以下版本,您可以为标签元素添加 css class 并使用它
.text-center{
text-align: center !important;
}
<p class="text-center">
如何将文本放在中心轮播中(bootstrap)。尝试调整 span 元素或?
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/1.jpg" class="img-responsive" alt="...">
<div class="carousel-caption">
<span><strong><p>Aktuelnosti u proizvodnji malina</p></strong>
</span>
</div>
</div>
.carousel-caption {
text-align: center;
}
这将使 div 中包含的任何文本居中。如果你只想做跨度,你可以使用
.carousel-caption span {
}
Bootstrap 2.3 有 class text-center ,http://getbootstrap.com/2.3.2/base-css.html
对于以下版本,您可以为标签元素添加 css class 并使用它
.text-center{
text-align: center !important;
}
<p class="text-center">