Posted on 2016-05-31 11:39
云自无心水自闲 阅读(371)
评论(0) 编辑 收藏 所属分类:
Bootstrap
1. 表格文字右对齐
<table>
<tr>
<td><p style="text-align:right;margin:0;padding:0">文字右对齐</p></td>
<td>文字左对齐</td>
</tr>
</table>
2. 表格边缘的margin
需要在表格外再套一个div
<div style="margin:10px">
<table>
......
</table>
</div>
3. btn-toolbar class can put a margin between 2 "pull-right" buttons
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8 btn-toolbar">
<input type="submit" class="btn btn-warning pull-right" value="Submit">
<input type="button" id="profilePassBackBtn" class="btn btn-info pull-right" value="Back">
</div>
<div class="col-md-2">
</div>
</div>