Javascript change font color

前端 未结 5 2212
旧时难觅i
旧时难觅i 2020-12-10 19:35

I need to change the font color.

I have the following:

   var clr=\"green\";

    \' + onlineff + \' 
5条回答
  •  暖寄归人
    2020-12-10 20:11

    Html code

    Colored By Santa

    javascript code

    document.getElementById("coloredBy").style.color = colorCode; // red or #ffffff
    

    I think this is very easy to use

提交回复
热议问题