assign color to mouse cursor using CSS

前端 未结 4 1226
迷失自我
迷失自我 2020-12-03 10:51

How can I assign color to the mouse cursor in a web-page?

Can anyone suggest me a way to do it using any of the technologies e.g. HTML, CSS, JavaScript?

4条回答
  •  感动是毒
    2020-12-03 11:30

    I used my own cursor up until today. Blue version of the standard arrow. PNG file with alpha transparent shadow. I loved it. But now I upgraded to 4K, and the PNG logically won't scale, so it appears tiny. Any solution for this? For now I use the crosshair, 'cos I can't stand that hand cursor.

    Had this: cursor: url(img/pointer_blue.png),auto;

    Now it's: cursor: crosshair;

提交回复
热议问题