Custom cursor image doesn't work in all IEs?

后端 未结 8 1642
梦如初夏
梦如初夏 2020-11-30 11:16

I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:

div {
   cursor: url(images/zoomin.c         


        
相关标签:
8条回答
  • 2020-11-30 12:11

    To work in IE you need specify full path to CUR file. E.g.:

    html {
        cursor: url("../img/cursor.png"), url("http://www.example.com/dist/assets/img/cursor.cur"), default;
    }
    
    0 讨论(0)
  • 2020-11-30 12:12

    I tried using .ani and .gif and it is working. It should go like this:

    body {
    cursor: url(images/dog.ani), url(images/dog.gif), progress !important;
    }
    

    This css works for my website in chrome, firefox and IE.

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