2017-04-26 81 views
-1

這是我的頭球面板代碼的中間,我想顯示在右側,在頭板的垂直中一個按鈕,在頂梁板 中央的文本,但按鈕顯示在標題面板頂部而不是中間。把一個按鈕在面板垂直

<div class="panel panel-info "> 
      <div class="panel-heading text-center clearfix"> 
       <a class="btn pull-right" style="background-color:red"   href="createpages"><span class="glyphicon glyphicon-plus" ></span></a> 
       <h5 style="color:white">create pages</h5> 
    </div> 

回答

0

閱讀您的問題後,它可能會幫助,或者您可以創建一個小提琴鏈接,更清晰,

<div class="panel panel-info "> 
    <button type="button" style="float:right">button</button> 
    <h5 align="center">Text center</h5> 
</div> 
+0

你只需要改變我的代碼一些部件,它是不是我的問題,我剛纔提到的我想要將按鈕垂直放置在面板中間而不是水平放置在面板中央。 –

+0

再看看http://stackoverflow.com/questions/37073028/bootstrap-how-to-align-the-button-group-in-the-center-vertically –