Chr*_*ich 0 html css twitter-bootstrap twitter-bootstrap-3
<th>Cars <i class="fa fa-sort-asc pull-right"></i></th>
Run Code Online (Sandbox Code Playgroud)
当我使用bootstrap的pull-right类时,它会将我中的图标与th右上角pull-right对齐,而删除则使图标在垂直方向上居中于左侧,但是有一种方法可以使我在使用bootstrap 时在我pull-right的居中位置中向右垂直对齐吗?
我正在使用fontawesome的引导程序和图标
您可以pull-left在跨度上使用。
<th class="text-right">
<span class="pull-left">First Name</span>
<i class="fa fa-sort-asc"></i>
</th>
Run Code Online (Sandbox Code Playgroud)
http://codeply.com/go/DIWtVsyMwh
在Bootstrap 4中,pull-leftnow float-left和pull-rightnowfloat-right