tablesorter.js and tablesortermin.js issues?

為{幸葍}努か 提交于 2019-12-11 18:38:43

问题


I am using the below tablesorter js files.

https://github.com/Mottie/tablesorter/tree/master/js

In that tablesorter.js files not showing the sorter images when i am applying like the below.

<style type="text/css">
table.tablesorter thead tr .header {
    background-image: url('/Public/images/sorter/bg.gif');  
    background-repeat: no-repeat;
    background-position: center right;
    cursor: pointer;
}
table.tablesorter thead tr .headerSortUp {
    background-image: url('/Public/images/sorter/asc.gif'); 
}
table.tablesorter thead tr .headerSortDown {
    background-image: url('/Public/images/sorter/desc.gif'); 
}
    </style>

But tablesorter.min.js file showing the tablesorter images.Why the images are not showing while using with tablesorter.js file.I need to sort the child rows table with parent table so that using tablesorter.js

<script type="text/javascript">
    $('#parenttheader').tablesorter({
       /* theme: 'blue',*/
        sortList: [
            [1, 0]
        ],
      widgets:['zebra', 'columns']
    });

 </script>

Please let me know how to apply sorter images to my table ?

来源:https://stackoverflow.com/questions/23081528/tablesorter-js-and-tablesortermin-js-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!