CSS Cursors are not working in WebKit browsers

…衆ロ難τιáo~ 提交于 2019-12-01 21:12:34

Found the problem! After ages of looking and tweaking I finally post my first question and then answered it within a few minutes. Oh dear. 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?

Oh the joys of working cross browser! Lets be fair, if they were all the same half of us would probably be out of a job...

Fixed CSS

    .olControlDrawFeatureActive 
    {
        cursor:url(<DOMAIN>/common/images/cursors/draw.png),crosshair;
    }

If anyone wants to add anything please feel free, I'm sure it will be useful to some poor sod such as myself :)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!