本文介绍了不同颜色的文本(javascript)(HTML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我通过听按键事件并使用样式生成随机颜色的跨度来制作不同颜色的文本。我觉得有很多开销可以做得更好吗?。请帮助我 codepen的链接如下: Codepen 我尝试过: 我通过听按键事件并使用样式生成随机颜色的跨度来制作不同颜色的文本。我觉得有很多开销可以做得更好吗?。请帮助我 指向codepen的链接如下: Codepen I made text with different colors by listening to keypress events and generating a span with random colors using style.I feel there is alot of overhead how can this be done better?.please help methe link to codepen is below:CodepenWhat I have tried:I made text with different colors by listening to keypress events and generating a span with random colors using style.I feel there is alot of overhead how can this be done better?.please help methe link to codepen is below:Codepen推荐答案 这篇关于不同颜色的文本(javascript)(HTML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-18 17:16