Home > Article > Web Front-end > Why is my custom cursor image not working in Firefox on Mac?
Custom Cursor Image Issue in CSS
You're attempting to change the cursor image to a magnifying glass while hovering over specific images. However, you're encountering difficulties with the following CSS rule:
a.heroshot img { cursor:url(/img/magnify.cur), pointer; }
Potential Solution:
It has been noted that the issue may stem from cursor URLs being incompatible with Firefox on Mac.
Firefox-Specific Alternative:
To achieve the desired effect in Firefox, you can employ the -moz-zoom-in keyword:
cursor:url(/img/magnify.cur), -moz-zoom-in, auto;
Browser Compatibility:
Different browsers support various cursor keywords. You can refer to a comprehensive list to ensure compatibility across multiple platforms:
The above is the detailed content of Why is my custom cursor image not working in Firefox on Mac?. For more information, please follow other related articles on the PHP Chinese website!