How to change color of letter on mouse hover in JavaScript

后端 未结 3 453
长发绾君心
长发绾君心 2020-12-31 15:54

This is my code:



        
3条回答
  •  失恋的感觉
    2020-12-31 16:07

    You can definitely solve this problem using CSS. Create a div and inside write a text command with an id. Use the id to reference it in CSS.

    .id:hover{
        color: blue;
    }
    

提交回复
热议问题