我知道在div類中添加text-center
對於居中一組按鈕來說已經足夠了。但在我的情況下,我需要將按鈕中的文字居中。Twitter Bootstrap居中按鈕文本
我試圖添加空白左邊距右邊的文本中心。但沒有幫助。
是否可以將文本居中?
<div id="mydiv">
<a href="#" class="btn btn-warning btn-lg text-center"
style="width:48px;margin-left:auto;margin-right:auto;">Ad</a>
...
...
</div>
小提琴:http://jsfiddle.net/mavent/YXrRT/3/
問題是填充相關的,除去保證金也無濟於事。 – azz