Custom cursor image doesn't work in all IEs?

后端 未结 8 1643
梦如初夏
梦如初夏 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:05

    Unfortunately, cursor is plain buggy in IE, at least until and including 8

    In Internet Explorer for Windows up to and including version 8, if a relative URI value is specified in an external style sheet file the base URI is considered to be the URI of the document containing the element and not the URI of the style sheet in which the declaration appears.

    http://reference.sitepoint.com/css/cursor

    You may want be able to use a conditional comment to target IE and then feed it a modified style rule with a different url.

提交回复
热议问题