2015-05-06 67 views

回答

1

你只需要你的自定義CSS來覆蓋(具有更高的特異性)的引導主題定義。

由於未提供HTML,因此this demo右對齊「英文」列中的所有tbody內容,並左對齊thead中單元格的圖標。

tr td:nth-child(4) { 
    text-align: right; 
} 
.tablesorter-bootstrap .tablesorter-header:nth-child(4) .tablesorter-header-inner { 
    padding-right: 4px; 
    padding-left: 18px; 
} 
.tablesorter-bootstrap .tablesorter-header:nth-child(4) i.tablesorter-icon { 
    left: 2px; 
    right: auto; 
} 
+0

我實際上使用了下列選擇器來使它工作:'th.text-right .tablesorter-header-inner'和'th.text-right i.tablesorter-icon'。 –