2014-10-01 83 views

回答

1

我試圖做這種方式。首先搜索的文本,然後與圖像

$(document).ready(function() { 
    $(".webgrid-table th").each(function() { 
     var text = $(this).text().trim(); 
     if (text == "TotalEmail") { 
      $(this).html('<img src="/Images/circles.jpg"/>'); 
     } 
    }); 
}); 

只需使用表類和獲取文本,然後用圖片代替它取代它。 希望它可以幫助你。

+0

它適用於我。我在頭文件類的基礎上進行搜索。 – 2014-10-03 14:29:00

相關問題