跨浏览器自定义光标样式 [英] Cross browser custom cursor style

查看:179
本文介绍了跨浏览器自定义光标样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过img标签显示世界地图。我将图像映射与它关联以超链接一些区域。



现在显示用户,我想让光标变成放大镜形状。我浏览网页,发现在firefox和ie6-8中有效:

  #zoomregion:hover {cursor:url 'templates / test / styles / images / magnify.cur'),-moz-zoom-in; }不幸的是,opera,chrome和ie9忽略它,并显示默认(即:指针)。如何使用跨浏览器自定义光标图标?

解决方案

http://beradrian.wordpress.com/2008/01/08/cross-browser-custom-css-cursors/ 应该可以帮助你。


I display a world map by an img tag. I associate an image map with it to hyperlink some regions. I overlay a bordered box div indicating a certain region can be clicked and zoomed.

Now to show the user it does this I want the cursor to change to a magnifying glass shape. I looked through the web and found something that works in firefox and ie6-8:

#zoomregion:hover { cursor: url('templates/test/styles/images/magnify.cur'), -moz-zoom-in; }

Unfortunately opera,chrome and ie9 ignore it and show the default (i.e.: pointer). How can I use cross browser custom cursor icons?

解决方案

http://beradrian.wordpress.com/2008/01/08/cross-browser-custom-css-cursors/ should help you in this.

这篇关于跨浏览器自定义光标样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆