Safari 自定义光标不起作用
我有一个用于带有很多热点的图像地图的自定义光标。我的光标在 Firefox 和 Internet Explorer 中工作正常,但 Safari 返回默认光标。
我使用了在其他网站上找到的代码。我的目录结构是:
index.php > css/main.css > > css/images/pencil.cur
这是我的实现(请注意,对于普通状态和 a、a:hover 和 a:visited 状态,我需要相同的自定义光标:
#gameScreen area, #gameScreen .wrapper, #gameScreen .wrapper a:hover, #gameScreen .wrapper a:visited {
cursor: url("images/rcspencil.cur"),url("css/images/rcspencil.cur"),default;
}
有什么想法吗?
I have a custom cursor for an image map with a lot of hotspots. My cursor works fine in Firefox and Internet Explorer, but Safari returns the default one.
I used code found on other websites. My directory structure is:
index.php > css/main.css > css/images/pencil.cur
Here is my implementation (please note I need the same custom cursor for both normal and a, a:hover and a:visited states:
#gameScreen area, #gameScreen .wrapper, #gameScreen .wrapper a:hover, #gameScreen .wrapper a:visited {
cursor: url("images/rcspencil.cur"),url("css/images/rcspencil.cur"),default;
}
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我能想到的最兼容浏览器的语法。可能有一个更好的浏览器黑客,但我会忽略它。
我不认为引号会阻止它工作,但在没有它们的情况下尝试一下。我唯一能想到的另一件事是您的选择器是错误的,就像您列出的选择器不包含您将鼠标悬停在其上的内容一样。
Here's the most browser-compatible syntax I can think of. There might be a better one with browser hacks but I'd ignore it.
I wouldn't think the quotations would prevent it from working, but try it without them. The only other thing I can think of is that your selectors are wrong, like the selectors you've got listed don't include the thing you're hovering over.