sr.m_content = GetContent(sr.m_url, sr.m_position); sr.m_content = sr.m_content.Replace(word, "<font color=#ff0000 size=4>" + word + "</font>"); //红色显示关键字 |
asp.net搜索匹配关键字为红色显示的代码
最新推荐文章于 2024-08-07 15:27:33 发布
sr.m_content = GetContent(sr.m_url, sr.m_position); sr.m_content = sr.m_content.Replace(word, "<font color=#ff0000 size=4>" + word + "</font>"); //红色显示关键字 |