怎么設置按鈕居中
? ? ? ? ? ? <div class="modal-footer">
? ? ? ? ? ? ? ? <button type="button" class="btn btn-default pull-left" data-dismiss="modal">關閉</button>
? ? ? ? ? ? ? ? <button type="button" class="btn btn-primary pull-left">保存</button>
? ? ? ? ? ? </div>
我在footer中的,將按鈕加上pull-left或者pull-right可以控制,按鈕居左或者居右,但是怎么讓按鈕居中呢。一個郁悶的事情,很少見到center這種
2016-05-14
<center>標簽,或者用一個div包裹,然后設置margin: 0 auto;