html, css - cursor - how to change default image for pointer

前端 未结 6 1977
傲寒
傲寒 2021-01-05 02:08

I need to change the default image for cursor: pointer with some custom image.

To create a class and specify the hover value for cursor is not a valid solution since

6条回答
  •  一整个雨季
    2021-01-05 02:33

    yes you can do this easily as like this

       .anyclass{
        cursor: URL(images/cursorimagefule.gif);
        }
    

    image file must be 32x32 or smaller

    apparently internet explorer only supports .cur files

    more info

提交回复
热议问题