如何在jquery dataTable中移动排序箭头

时间:2015-06-19 12:02:33

标签: jquery css datatables

有没有办法将排序箭头放在列名附近?现在我得到了这个enter image description here

我需要像这样

enter image description here

我无法缩小列,因为列需要很宽才能在其中显示信息。

2 个答案:

答案 0 :(得分:1)

不,你不能这样做,因为排序图像是背景图像。您可以设置左/中/右背景图像的位置。但是你不能在文本结束后设置位置。

enter image description here

我可以给出一个想法,你手动添加一些html并根据事件设置它。

祝你好运。

答案 1 :(得分:0)

您可以为该特定的

添加display: inline; css属性