本文 13123 pv

1

怎么实现搜索的关键字字体变色

© kekehu / 技术资源 / 2006.05.07 / 09:43 / 13123PV

通过从mysql搜索取得数据并显示出来,该怎么实现搜索的关键字字体变色呢?

$result = mysql_fetch_row()

$title = $row['title'];

$title = str_replace($search_keyword,"<b><font color=red>".$search_keyword."</font></b>",$title);

echo $title;

本文有 1 篇评论

  1. @ sdfsfsd Email 说 :
    2008.06.28 22:23
    avatar

    留言本 游客无需密码

1/7 第一页 1 2 3 4 5 6 7 下页 最后页

发表你的见解

打开HTML 打开UBB 打开表情 隐藏 记住我
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemot