CSS Cursor pointer with SVG image

后端 未结 1 1115
太阳男子
太阳男子 2020-12-06 00:15

I\'m trying to apply a custom cursor pointer with an SVG image but it\'s not working, instead if I use a png image everything is working fine.

Here\'s my code.

相关标签:
1条回答
  • 2020-12-06 01:13

    Your image is simply too large. Reduce the width and height to something less than 128px.

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_User_Interface/Using_URL_values_for_the_cursor_property#Limitations

    ...the limit of the cursor size is 128×128px. Larger cursor images are ignored.

    Example:
    https://jsfiddle.net/xhk4zo8y/

    0 讨论(0)
提交回复
热议问题