jquery tablesorter CSS arrow icons

后端 未结 6 1398
离开以前
离开以前 2021-01-06 19:24

This is really more of a CSS question than a jQuery question. I\'m using the tablesorter jQuery plugin to sort tables dynamically.

Here\'s what it looks like curren

6条回答
  •  日久生厌
    2021-01-06 19:47

    Try this:

    th.headerSortUp span{
        background: url("arrow-up.gif") right center no-repeat;
        padding-right: 20px;
    }
    
    th.headerSortDown span{
        background: url("arrow-up.gif") right center no-repeat;
        padding-right: 20px;
    }
    

    And add span to your th

    Edit: Changed div to span (see coments below)

提交回复
热议问题