<% response.write replace(rs("字段X"),searchname,"<font color=#FF0000>" & searchname & "</font>") %> 说明:rs为记录集对象,searchname为搜索的关键词 该文章转载自[余志国网站设计工作室]:http://www.yuzhiguo.com/articleview.asp?id=349