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

前端 未结 6 1976
傲寒
傲寒 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:23

    You can create a custom cursor for the body element, which will, unless overridden by later selectors, serve to act as a default:

    body {
        cursor: URL(images/cursorimage.cur); /* IE */
        cursor: URL(images/cursorimage.gif);
    }
    

提交回复
热议问题