我试图使用一个jQuery dataTable插件.问题是@R_301_484@排序图标(指向哪个方向数据实际排序的箭头).
我的代码如下所示:
$('#example').dataTable( { "bPaginate": false,"bFilter": false,"oLanguage": { "sInfo": ""} } );
和Html:
<table class="surfClass" cellspacing="1" id="example"> <thead> <tr> <th width="120px">Name</th> <th width="120px">The hourly rate (points)</th> <th>Levels of referrals</th> <th>bonuses</th> <th width="70px">Payout minimum</th> </tr> </thead>
解决方法
我有这个问题,我发现因为我已经将CDN脚本复制到我的本地机器,它没有正确地引用图像,正如@ Matt2012指出的.所以我的解决方案是更新CSS文件,以寻找那些我想要放置它们的图像,在我也保存它们之后.
看这部分:
table.dataTable thead .sorting { background: url('/Content/images/sort_both.png') no-repeat center right; } table.dataTable thead .sorting_asc { background: url('/Content/images/sort_asc.png') no-repeat center right; } table.dataTable thead .sorting_desc { background: url('/Content/images/sort_desc.png') no-repeat center right; } table.dataTable thead .sorting_asc_disabled { background: url('/Content/images/sort_asc_disabled.png') no-repeat center right; } table.dataTable thead .sorting_desc_disabled { background: url('/Content/images/sort_desc_disabled.png') no-repeat center right; }