截屏
html
<div class="client-box">
<div class="box-header clearfix">
<h6 class="pull-left">General Information</h6>
<button class="btn btn-small pull-right"><i class="icon-pencil"></i> Edit</button>
</div>
<p>box content</p>
</div>
如何使标题<h6>
相对于“编辑”按钮垂直居中?
vertical-align
装上没用box-header
。我不想硬编码行高,因为我可能会在以后更改按钮大小或其他内容,然后它会中断。