2016-07-11 22 views
2

我的應用程序使用jQuery + Tablesorter(mottie fork)創建服務器概述表。Tablesorter(mottie fork)/ theme bootstrap/headers sorter false =>我的類仍然存在

我用的是引導主題(theme.bootstrap.css)和的tablesorter初始化我添加

theme: "bootstrap" 

headers: { 0: { 
          sorter: false, 
          filter: false 
         } 
        }, 

它看起來不錯禁用柱0:

view of checkbox in header

但我有問題與ch一起工作eckbox。我只能在標題正下方的一個像素中激活它。

我可以看到,排序圖標不會顯示,但<i class ..>仍然存在。

而這個設置將覆蓋我的小頭複選框:

<div class="tablesorter-wrapper" style="position:relative;height:100%;width:100%"> 
    <div class="tablesorter-header-inner"><input name="Marked" value="0" onclick="CheckTable(this,'chkbox_')" type="checkbox"> 
     <i class="tablesorter-icon"></i> 
    </div> 
</div> 

哪裏這個<i class ...>從何而來?我究竟做錯了什麼?

問候 約亨

的tablesorter v2.26.5 jQuery的V2.2.3

回答

0

這看起來就像是在CSS中的錯誤。我只是說了以下CSS定義的引導主題(和其他一些)

.tablesorter-bootstrap .tablesorter-header.sorter-false i.tablesorter-icon { 
    display: none; 
} 
.tablesorter-bootstrap .sorter-false .tablesorter-header-inner { 
    padding: 4px; 
} 

如果從主分支中加入它們,或者更新的主題(尚未公佈)。

+0

Mottie - 完美,是的工作 - 謝謝你 – Jochen

相關問題