css cursor using data-uri

前端 未结 2 460
执笔经年
执笔经年 2020-12-10 13:31

I\'m trying to use custom png cursor using data uri but the cursor doesn\'t change. I\'ve tested on FF 17 which support png as custom cursor. The same data uri work as a bac

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 13:47

    Add , auto after your data url like such:

    cursor: url(data:image/png;base64,...), auto;
    

    Not sure why this fixes the problem.

提交回复
热议问题