1.替换关键字,对字体变色。 public static string ReplaceRed(string strtitle, string redkey) } 2.用正则,CSS背景变色。 protected string HighlightText(string inputText,string searchWord) } CSS: .highlightTxtSearch} 相关文章: