更改特定字符串的颜色 [英] Change color of specific string
本文介绍了更改特定字符串的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道我如何改变一个特定单词的颜色,如果它被键入到一个textarea?例如,如果用户键入hello my friend,它会动态地将hello改变为绿色?花了大量的时间在谷歌,并找不到任何非常相关的。谢谢。
Does anyone know how I could change the color of a specific word if it is typed into a textarea? For instance, if the user types 'hello my friend', it would dynamically change 'hello' to green? Spent a large amount of time on google, and could not find anything very related. Thank you.
推荐答案
textarea
有色。
这篇关于更改特定字符串的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文