http://tablesorter.com/docs/から JQuery tablesorter を実装しました 。
並べ替え部分は正常に機能しますが、背景画像をテーブル ヘッダーに入れるのに問題があります。
HTML テーブル コード:
echo '<table id="viewAll" class="tablesorter">';
echo '<thead>';
echo '<tr>';
echo '<th>Product</th>';
echo '<th>PBI</th>';
echo '<th>Status</th>';
echo '<th>Summary</th>';
echo '<th>Record Created</th>';
echo '<th>Record Updated</th>';
echo '</tr>';
echo '</thead>';
背景画像を取得するための CSS コード:
table.tablesorter thead tr .header {
background-image: url(images/tablesorter/bg.gif);
background-repeat: no-repeat;
background-position: left top;
cursor: pointer;
}
並べ替えが正常に機能すると言ったように、カーソルポインターを取得できますが、背景画像を取得できないようです。
私は何が欠けています..?