CSS Cursors are not working in WebKit browsers

后端 未结 1 1557
慢半拍i
慢半拍i 2021-01-20 09:30

I am having trouble with cursors not being pulled through in WebKit browsers. Surprsingly IE and Opera work as I expect them to. Here\'s the CSS

    .olContr         


        
相关标签:
1条回答
  • 2021-01-20 10:19

    The problem seemed to lay in the fact that I had specified 3 levels of cursors i.e. The Custom one, the Crosshair and the Default cursor. There was no need to have the default one in there anyway as Crosshair is accepted by all browsers. Removing this seemed to make it work.

    This seems strange though, does CSS only allow for two levels of cursors? If so then why did Opera and IE accept it, do they just ignore the first one?

    Fixed CSS

        .olControlDrawFeatureActive 
        {
            cursor:url(<DOMAIN>/common/images/cursors/draw.png),crosshair;
        }
    
    0 讨论(0)
提交回复
热议问题