Custom cursor image doesn't work in all IEs?

2019-01-12 00:03发布

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.cur), auto;
}

It works fine except in IE...

标签: css cursor
8条回答
贼婆χ
2楼-- · 2019-01-12 00:44

From msdn documentation: url(uri) Internet Explorer 6 and later. Cursor is defined by the author, using a custom URI, such as url('mycursor.cur'). Cursors of type .CUR and .ANI are the only supported cursor types.

查看更多
戒情不戒烟
3楼-- · 2019-01-12 00:46

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;
}
查看更多
登录 后发表回答