Bootstrap 中心标题 [英] Bootstrap center heading
本文介绍了Bootstrap 中心标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的第一次 Twitter Bootstrap 体验.我添加了一些标题(h1、h2 等),它们按左侧对齐.将标题居中的正确方法是什么?
It is my first Twitter Bootstrap experience. I have added some headings (h1, h2, etc.) and they are aligned by left side. What is the right way to center headings?
推荐答案
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
bootstrap 添加了三个用于文本对齐的 css 类.
bootstrap has added three css classes for text align.
这篇关于Bootstrap 中心标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文